/*
Theme Name: ProtectionWP
Theme URI: https://protection.waw.pl
Author: Mariusz Kieszek
Author URI: https://protection.waw.pl
Description: Custom WordPress block (Full Site Editing) theme for PROTECTION Sp. z o.o. — workplace safety (BHP) and fire protection (PPOŻ) services. Edited in the Site Editor; styled with Bootstrap 5.
Version: 2.8.0
Requires at least: 6.4
Tested up to: 6.7
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: protectionwp
*/

:root {
    --navy: #0A192F;
    --orange: #FF6B00;
    --orange-hover: #E66000;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-muted: #64748B;
    --transition: all 0.3s ease;
    --header-h: 84px; /* height of the fixed .site-nav; heroes offset by this */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; }

/* --- NAVIGATION --- */
.site-nav {
    position: fixed; width: 100%; top: 0; z-index: 2000;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    padding: 15px 8%; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo { font-weight: 800; font-size: 24px; color: var(--navy); text-transform: uppercase; letter-spacing: -1px; display: inline-flex; align-items: center; }
.logo span { color: var(--orange); }
.logo-img { display: block; height: 50px; width: auto; max-width: none; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.btn-header-outline > .wp-block-button__link { padding: 12px 24px; border: 2px solid var(--navy); border-radius: 10px; color: var(--navy); font-weight: 700; font-size: 13px; transition: var(--transition); }
.btn-header-outline > .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.btn-header-solid > .wp-block-button__link { padding: 12px 24px; background: var(--orange); border-radius: 10px; color: var(--white); font-weight: 700; font-size: 13px; transition: var(--transition); }
.btn-header-solid > .wp-block-button__link:hover { background: var(--orange-hover); transform: translateY(-2px); color: var(--white); }
/* Same look when the class sits on a core Button block: style the inner link. */
.wp-block-button.btn-header-outline > .wp-block-button__link,
.wp-block-button.btn-header-solid > .wp-block-button__link {
    padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 13px; transition: var(--transition);
}
.wp-block-button.btn-header-outline > .wp-block-button__link { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.wp-block-button.btn-header-outline > .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.wp-block-button.btn-header-solid > .wp-block-button__link { background: var(--orange); border: 2px solid var(--orange); color: var(--white); }
.wp-block-button.btn-header-solid > .wp-block-button__link:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); transform: translateY(-2px); }
/* Hero CTAs are larger, and the outline button is white on the dark hero. */
.hero .wp-block-button > .wp-block-button__link,
.page-hero .wp-block-button > .wp-block-button__link { padding: 18px 40px; font-size: 14px; }
.hero .wp-block-button.btn-header-outline > .wp-block-button__link,
.page-hero .wp-block-button.btn-header-outline > .wp-block-button__link { color: var(--white); border-color: var(--white); }
.page-hero .wp-block-button.btn-header-outline > .wp-block-button__link:hover { background: var(--white); color: var(--navy); }
/* Editable header menu — core/navigation block ("header-nav"). Items with a
   btn-header-* class look like buttons; any other item is a plain nav link. */
.header-nav .wp-block-navigation__container { gap: 20px; align-items: center; }
.header-nav .wp-block-navigation-item__content { color: var(--navy); font-weight: 700; font-size: 14px; transition: var(--transition); }
.header-nav .wp-block-navigation-item:not(.btn-header-outline):not(.btn-header-solid) > .wp-block-navigation-item__content:hover,
.header-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content { color: var(--orange); }
/* Items styled as buttons (class on the <li>; style the link inside). */
.header-nav .wp-block-navigation-item.btn-header-outline > .wp-block-navigation-item__content,
.header-nav .wp-block-navigation-item.btn-header-solid > .wp-block-navigation-item__content { padding: 12px 24px; border-radius: 10px; font-size: 13px; transition: var(--transition); }
.header-nav .wp-block-navigation-item.btn-header-outline > .wp-block-navigation-item__content { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.header-nav .wp-block-navigation-item.btn-header-outline > .wp-block-navigation-item__content:hover { background: var(--navy); color: var(--white); }
.header-nav .wp-block-navigation-item.btn-header-solid > .wp-block-navigation-item__content { background: var(--orange); border: 2px solid var(--orange); color: var(--white); }
.header-nav .wp-block-navigation-item.btn-header-solid > .wp-block-navigation-item__content:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
/* Header phone: the icon is the link (plain orange icon), the number stays plain text. */
.nav-phone { display: flex; align-items: center; gap: 10px; margin-left: 10px; font-weight: 800; color: var(--navy); font-size: 16px; }
.nav-phone-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: var(--orange); font-size: 18px; line-height: 1; transition: var(--transition); }
.nav-phone-icon:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }
.nav-phone-icon:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.nav-phone-number { font-weight: 800; color: var(--navy); }

/* Subpage top menu — core/navigation ("subpage-nav"). Shown only on the
   service-page template (replaces the header buttons there); hidden elsewhere
   (e.g. the front page keeps the header-nav buttons). */
.subpage-nav { display: none; }
.page-template-page-service .header-nav { display: none; }
.page-template-page-service .subpage-nav { display: flex; }
.subpage-nav .wp-block-navigation__container { gap: 22px; align-items: center; }
.subpage-nav .wp-block-navigation-item__content { color: var(--navy); font-weight: 700; font-size: 14px; transition: var(--transition); }
.subpage-nav .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.subpage-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content { color: var(--orange); }
/* Hamburger trigger (small screens) sits on the white header. */
.subpage-nav .wp-block-navigation__responsive-container-open { color: var(--navy); }
.subpage-nav .wp-block-navigation__responsive-container-open:hover { color: var(--orange); }
/* Open overlay: full-screen navy panel, white links, centred, no scroll. The
   menu list must be forced to a vertical column (it otherwise inherits the
   header's row + no-wrap layout, so overflow:hidden would clip all but the
   first item). !important beats core's #fff/overflow defaults, which carry
   very high specificity. */
.subpage-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--navy) !important; overflow: hidden !important; height: 100vh; padding: 32px; }
.subpage-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { flex: 1 1 auto; justify-content: center; }
.subpage-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column !important; flex-wrap: nowrap !important; align-items: start; gap: 20px; }
.subpage-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--white); font-size: clamp(18px, 5vw, 26px); }
.subpage-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--orange); }
.subpage-nav .wp-block-navigation__responsive-container-close { color: var(--white); }
/* Collapse to the hamburger below 1200px (the seven items stop fitting inline
   before the header's own 1100px breakpoint), overriding core's 600px default. */
@media (max-width: 1200px) {
	.page-template-page-service .subpage-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.page-template-page-service .subpage-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* --- HERO (core/cover block — background image is editable in the editor) --- */
.hero {
    /* Pad (not margin) past the fixed header so the centred content never hides
       under it, while the background image still extends behind the header. */
    padding-top: var(--header-h);
    color: var(--white);
}
/* Let the hero content span the column so the Bootstrap .container can center it. */
.hero .wp-block-cover__inner-container { width: 100%; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.hero-content h1 span { color: var(--orange); }
.hero-content p { font-size: 1.2rem; max-width: 700px; color: #CBD5E1; margin-bottom: 40px; }

/* --- SECTIONS --- */
.section { padding: 120px 0; }
.section-header { margin-bottom: 70px; }
.section-header h2 { font-size: 2.8rem; font-weight: 800; color: var(--navy); }
.section-header .line { width: 60px; height: 6px; background: var(--orange); margin-top: 20px; border-radius: 3px; }

/* --- SERVICE CARDS --- */
.card-service { background: var(--bg-light); padding: 50px 40px; border-radius: 20px; transition: var(--transition); display: flex; flex-direction: column; border: 1px solid transparent; height: 100%; }
.card-service:hover { background: var(--white); border-color: #E2E8F0; box-shadow: 0 30px 60px rgba(0,0,0,0.06); transform: translateY(-10px); }
.card-service i { font-size: 40px; color: var(--orange); margin-bottom: 25px; display: block; }
.card-service h3 { font-size: 22px; margin-bottom: 15px; color: var(--navy); font-weight: 800; }
.card-service p { margin-bottom: 30px; flex-grow: 1; color: var(--text-muted); }
.btn-more { color: var(--navy); font-weight: 800; font-size: 14px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-more i { font-size: 14px; margin-bottom: 0; color: var(--orange); transition: transform 0.3s; }
.card-service:hover .btn-more i { transform: translateX(5px); }
.btn-more:hover { color: var(--orange); }
/* Same "more →" text-link look when btn-more is a core Button block (editable):
   strip the button chrome, render the arrow as a Font-Awesome ::after. */
.wp-block-buttons.btn-more-wrap { gap: 0; margin: 0; }
.bento-card .wp-block-buttons.btn-more-wrap { margin-top: 24px; }
.wp-block-button.btn-more { margin: 0; }
.wp-block-button.btn-more > .wp-block-button__link { background: transparent; border: none; border-radius: 0; padding: 0; color: var(--navy); font-weight: 800; font-size: 14px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); }
.wp-block-button.btn-more > .wp-block-button__link::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--orange); font-size: 14px; transition: transform 0.3s; }
.wp-block-button.btn-more > .wp-block-button__link:hover { color: var(--orange); }
.card-service:hover .wp-block-button.btn-more > .wp-block-button__link::after,
.wp-block-button.btn-more > .wp-block-button__link:hover::after { transform: translateX(5px); }

/* --- FLEET (editable via ACF — "Sekcja FLOTA" on the front page) --- */
.fleet-banner { background: var(--navy); color: var(--white); align-items: center; border-radius: 40px; overflow: hidden; }
.fleet-content { padding: 80px; }
.fleet-content h2 { font-size: 3rem; margin-bottom: 25px; font-weight: 800; }
.fleet-content p { color: #CBD5E1; font-size: 1.1rem; }
/* Carousel fills its column and stays flush with the banner edge. */
.fleet-banner .fleet-carousel, .fleet-banner .carousel-inner, .fleet-banner .carousel-item { height: 100%; }
.fleet-img { display: block; height: 100%; width: 100%; object-fit: cover; min-height: 500px; }
.fleet-list { list-style: none; margin-top: 30px; padding-left: 0; }
.fleet-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 18px; font-weight: 600; }
/* Check bullet drawn in CSS so list items stay plain-text editable in Gutenberg. */
.fleet-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--orange); }

/* --- CONTACT --- */
.contact-container { background: var(--bg-light); padding: 80px; border-radius: 40px; }
.contact-details h2 { font-size: 3rem; font-weight: 800; margin-bottom: 25px; line-height: 1.1; }
.contact-details p.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.info-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.info-icon { width: 60px; height: 60px; background: var(--white); color: var(--orange); display: flex; align-items: center; justify-content: center; border-radius: 15px; font-size: 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); flex-shrink: 0; }
/* Icon is now a link button — feedback on hover and a visible focus ring (WCAG 2.4.7). */
a.info-icon { text-decoration: none; transition: var(--transition); }
a.info-icon:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
a.info-icon:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.info-text h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin-bottom: 3px; }
.info-text p { margin-bottom: 0; color: var(--navy); font-weight: 800; font-size: 18px; }
.contact-form { background: var(--white); padding: 50px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.03); }
/* Status notices (theme fallback messages when CF7 is missing). */
.form-notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 25px; font-weight: 700; font-size: 15px; }
.form-notice.is-success { background: #E7F7ED; color: #0F7A3D; border: 2px solid #0F7A3D; }
.form-notice.is-error { background: #FDECEC; color: #B3261E; border: 2px solid #B3261E; }
.form-group { margin-bottom: 25px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 14px; }
/* :not([type=submit]) keeps the field styling off CF7's <input type="submit"> button. */
.contact-form input:not([type=submit]), .contact-form textarea { width: 100%; padding: 18px; border: 2px solid #F1F5F9; border-radius: 12px; font-family: inherit; font-size: 16px; transition: var(--transition); background: #F8FAFC; }
.contact-form input:not([type=submit]):focus, .contact-form textarea:focus { border-color: var(--orange); outline: none; background: var(--white); }
.btn-submit { width: 100%; padding: 20px; background: var(--orange); color: var(--white); border: none; border-radius: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: var(--transition); font-size: 15px; letter-spacing: 1px; }
.btn-submit:hover { background: var(--orange-hover); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255,107,0,0.3); }

/* --- CONTACT FORM 7 (form rendered with html_class="contact-form") --- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid { border-color: #B3261E; }
.wpcf7-not-valid-tip { color: #B3261E; font-size: 14px; font-weight: 700; margin-top: 8px; display: block; }
.contact-form .wpcf7-spinner { display: block; margin: 12px auto 0; }
/* Response output styled like the old .form-notice; selectors match CF7's own
   specificity (.wpcf7 form…) so the theme sheet, loaded later, wins. */
.wpcf7 form.contact-form .wpcf7-response-output { display: block; margin: 25px 0 0; padding: 16px 20px; border: 2px solid var(--text-muted); border-radius: 12px; font-weight: 700; font-size: 15px; }
.wpcf7 form.contact-form.sent .wpcf7-response-output { background: #E7F7ED; color: #0F7A3D; border-color: #0F7A3D; }
.wpcf7 form.contact-form.failed .wpcf7-response-output,
.wpcf7 form.contact-form.aborted .wpcf7-response-output,
.wpcf7 form.contact-form.spam .wpcf7-response-output,
.wpcf7 form.contact-form.invalid .wpcf7-response-output,
.wpcf7 form.contact-form.unaccepted .wpcf7-response-output { background: #FDECEC; color: #B3261E; border-color: #B3261E; }

/* --- FOOTER --- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 80px 10% 40px; text-align: center; }
/* Logo sits on a white card so the dark wordmark stays legible on the navy footer. */
.site-footer .logo { display: inline-block; margin-bottom: 25px; background: var(--white); padding: 14px 22px; border-radius: 14px; }

/* --- SUBPAGES (e.g. "Dokumentacja PPOŻ") --- */
/* Sub-hero: a core/cover with the navy overlay. Same header offset as the front
   hero (padding-top, not margin) so the h1 always clears the fixed nav; the cover
   height is set on the block (640px) and editable per page. */
.page-hero { padding-top: var(--header-h); color: var(--white); }
.page-hero .wp-block-cover__inner-container { width: 100%; }
.page-hero-content { max-width: 640px; }
.page-hero .hero-badge { display: inline-block; background: var(--orange); color: var(--white); padding: 6px 18px; border-radius: 9999px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; }
.page-hero h1,
.page-hero .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; color: var(--white); }
.page-hero p { font-size: 1.15rem; color: #CBD5E1; margin-bottom: 40px; }
.page-hero .hero-highlight { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 24px; }
/* Split hero: navy gradient background, text column + image column (no bg photo). */
.page-hero--split { background: linear-gradient(135deg, #0D1C32 0%, var(--navy) 100%); padding-top: calc(var(--header-h) + 60px); padding-bottom: 100px; overflow: hidden; }
.hero-media { position: relative; }
.hero-media img { border-radius: 40px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.hero-media .stat-badge { left: 0; right: auto; }
/* Service subpages follow the mockup's heading weights (headline-lg = 700);
   scoped so the front page's section headings stay at their own weight. */
.page-template-page-service .section-header h2 { font-weight: 700; }

/* Bento grid of documentation services. */
.bento-card { background: var(--white); padding: 40px; border-radius: 40px; box-shadow: 0 10px 30px rgba(10,25,47,0.05); border: 1px solid rgba(197,198,205,0.3); height: 100%; transition: var(--transition); }
.bento-card:hover { box-shadow: 0 30px 60px rgba(10,25,47,0.08); }
.bento-card .bento-icon { font-size: 36px; color: var(--orange); margin-bottom: 24px; display: block; }
.bento-card h3 { font-size: 24px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.bento-card p { color: var(--text-muted); margin-bottom: 24px; }
.bento-card p:last-child { margin-bottom: 0; }
.bento-check { list-style: none; padding-left: 0; margin: 0; }
.bento-check li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 12px; }
.bento-check li:last-child { margin-bottom: 0; }
.bento-check li::before { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--orange); }
.bento-card--navy { background: var(--navy); border-color: transparent; color: var(--white); display: flex; flex-direction: column; }
.bento-card--navy h3 { color: var(--white); }
.bento-card--navy p { color: rgba(255,255,255,0.8); }
.bento-card--navy .bento-check li { color: var(--white); }
.bento-card.bento-card--navy .wp-block-buttons.btn-more-wrap { margin-top: auto; }
.bento-card--navy .wp-block-button.btn-more > .wp-block-button__link { color: var(--orange); }
.bento-card--navy .wp-block-button.btn-more > .wp-block-button__link:hover { color: var(--white); }
.bento-card--muted { background: var(--bg-light); border-color: transparent; box-shadow: none; }
.bento-image img { border-radius: 24px; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Highlighted note row inside a bento card (icon + emphasised text). */
.bento-note { display: flex; align-items: center; gap: 16px; background: var(--bg-light); border-radius: 16px; padding: 16px 20px; margin-top: 24px; }
.bento-note .bento-note-icon { color: var(--orange); font-size: 22px; margin: 0; flex-shrink: 0; }
.bento-note p { margin: 0; font-weight: 700; font-size: 14px; color: var(--navy); }

/* "Dla kogo?" — navy full-width band with audience tiles. */
.audience-section { background: var(--navy); color: var(--white); }
.audience-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.audience-section .col-lg-6 > p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; }
.audience-tile { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px; height: 100%; }
.audience-tile .audience-icon { color: var(--orange); font-size: 24px; margin-bottom: 10px; display: block; }
.audience-tile .label { color: var(--white); font-weight: 700; }
.audience-image img { border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); width: 100%; display: block; }

/* "Dlaczego my?" — centered USP cards. */
.usp-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.usp-header h2 { font-size: 2.8rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.usp-header p { color: var(--text-muted); }
.usp-card { text-align: center; padding: 24px; }
.usp-icon { width: 64px; height: 64px; background: var(--bg-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--navy); font-size: 28px; }
.usp-card h4 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.usp-card p { color: var(--text-muted); }

/* Contact CTA banner. */
.cta-banner { background: var(--orange); color: var(--white); border-radius: 40px; padding: 60px; position: relative; overflow: hidden; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin-bottom: 0; }
.wp-block-buttons.cta-actions { display: flex; flex-direction: column; gap: 16px; }
.wp-block-buttons.cta-actions .wp-block-button,
.wp-block-buttons.cta-actions .wp-block-button > .wp-block-button__link { width: 100%; }
/* Uniform CTA-button size regardless of the style class used in the stack. */
.wp-block-buttons.cta-actions .wp-block-button > .wp-block-button__link { padding: 18px 32px; border-radius: 16px; font-size: 15px; }

/* --- REUSABLE BUTTON STYLES (core Button block; add via "Additional CSS class") ---
   Standard set, usable on any page: btn-header-solid / btn-header-outline (above),
   btn-cta-navy (navy fill, for light/coloured backgrounds), btn-cta-ghost
   (translucent outline, for coloured backgrounds), btn-more (text link, arrow).
   Combine with an icon utility (btn-icon-*) to prefix a Font-Awesome glyph — no
   HTML block needed. */
.wp-block-button.btn-cta-navy > .wp-block-button__link,
.wp-block-button.btn-cta-ghost > .wp-block-button__link { padding: 18px 32px; border-radius: 16px; font-weight: 800; font-size: 15px; transition: var(--transition); }
.wp-block-button.btn-cta-navy > .wp-block-button__link { background: var(--navy); border: 2px solid var(--navy); color: var(--white); }
.wp-block-button.btn-cta-navy > .wp-block-button__link:hover { background: #061122; border-color: #061122; color: var(--white); transform: translateY(-2px); }
.wp-block-button.btn-cta-ghost > .wp-block-button__link { background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.35); color: var(--white); }
.wp-block-button.btn-cta-ghost > .wp-block-button__link:hover { background: rgba(255,255,255,0.3); color: var(--white); transform: translateY(-2px); }
.wp-block-button.btn-cta-light > .wp-block-button__link { padding: 18px 32px; border-radius: 16px; font-weight: 800; font-size: 15px; background: var(--white); border: 2px solid var(--white); color: var(--navy); transition: var(--transition); }
.wp-block-button.btn-cta-light > .wp-block-button__link:hover { background: var(--bg-light); border-color: var(--bg-light); color: var(--navy); transform: translateY(-2px); }

/* Icon utilities: btn-icon-mail / btn-icon-phone prefix an icon; btn-icon-arrow
   appends one. Work on any core Button regardless of its style class. */
.wp-block-button[class*="btn-icon-"] > .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.wp-block-button[class*="btn-icon-"] > .wp-block-button__link::before,
.wp-block-button.btn-icon-arrow > .wp-block-button__link::after { font-family: "Font Awesome 6 Free"; font-weight: 900; }
.wp-block-button.btn-icon-mail > .wp-block-button__link::before { content: "\f0e0"; }
.wp-block-button.btn-icon-phone > .wp-block-button__link::before { content: "\f095"; }
.wp-block-button.btn-icon-arrow > .wp-block-button__link::after { content: "\f061"; }

/* --- SUBPAGE: Przeglądy Sprzętu --- */
/* Description under a section header (front page has no such paragraph). */
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin-top: 16px; }

/* Left-aligned rounded icon box for service cards (reusable). */
.icon-box { width: 64px; height: 64px; background: var(--bg-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 28px; margin-bottom: 24px; }

/* Image header inside a service card (e.g. Praktyczne PPOŻ "Dlaczego"). */
.bento-card .card-img { margin: 0 0 24px; }
.bento-card .card-img img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; display: block; }

/* Glass feature cards inside a hero (e.g. E-learning hero right column). */
.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-feature { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 24px; }
.hero-feature h3 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hero-feature p { color: rgba(255,255,255,0.78); font-size: 13px; margin: 0; }
.hero-feature .hf-icon { color: var(--orange); font-size: 30px; margin-bottom: 12px; }

/* Feature rows / checklist when placed on the navy band (white text variants). */
.review-band .why-title { color: var(--white); }
.review-band .why-feature h4 { color: var(--white); }
.review-band .why-feature p { color: rgba(255,255,255,0.8); }
.review-band .why-feature-icon { background: rgba(255,255,255,0.1); }
.review-band .bento-check li { color: var(--white); }
.review-band .why-media img { box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.feature-cover .feature-tile-body { max-width: 600px; }

/* "Dla kogo?" navy band + centred header. */
.review-band { background: var(--navy); color: var(--white); }
.review-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.review-head h2 { font-size: 2.4rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.review-head p { color: rgba(255,255,255,0.75); }

/* Bento feature tiles on the navy band. */
.feature-tile { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 40px; padding: 40px; height: 100%; color: var(--white); display: flex; flex-direction: column; gap: 16px; }
.feature-tile h4 { font-size: 24px; font-weight: 600; color: var(--white); }
.feature-tile p { color: rgba(255,255,255,0.8); }
.feature-tile ul { list-style: none; padding-left: 0; margin: 0; color: rgba(255,255,255,0.8); }
.feature-tile ul li { margin-bottom: 8px; position: relative; padding-left: 18px; }
.feature-tile ul li::before { content: "•"; position: absolute; left: 0; color: var(--orange); }
.feature-tile .tile-icon { font-size: 40px; color: var(--white); margin: 0; }
.feature-tile .tile-icon--lg { font-size: 72px; color: rgba(255,255,255,0.18); }
.feature-tile--accent { background: var(--orange); border-color: var(--orange); }
.feature-tile--accent p { color: rgba(255,255,255,0.92); }
/* The wide tile lays its big icon beside the text. */
.feature-tile--wide { flex-direction: row; align-items: center; gap: 32px; }
.feature-tile--wide .feature-tile-body { flex: 1; }
.feature-cover { border-radius: 40px; overflow: hidden; color: var(--white); }
.feature-cover .wp-block-cover__inner-container { width: 100%; }
.feature-cover h4 { font-size: 24px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.feature-cover p { color: rgba(255,255,255,0.85); margin: 0; }

/* "Dlaczego my?" — image with a stat badge + feature rows. */
.why-media { position: relative; }
.why-media img { border-radius: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); width: 100%; display: block; }
.stat-badge { position: absolute; right: 0; bottom: -28px; background: var(--white); padding: 24px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); max-width: 240px; z-index: 2; }
.stat-badge .stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.stat-badge .stat-label { font-weight: 700; font-size: 14px; color: var(--navy); }
.why-title { font-size: clamp(1.8rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 32px; }
.why-feature { display: flex; gap: 24px; margin-bottom: 32px; }
.why-feature:last-child { margin-bottom: 0; }
.why-feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 9999px; background: #E6E8EA; display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 20px; margin: 0; }
.why-feature h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.why-feature p { color: var(--text-muted); }
/* The icon paragraphs are <p>, so the card/feature `p` colour rules above (more
   specific than .icon-box / .why-feature-icon) would tint them grey — keep them
   orange with an equally specific, later rule. */
.bento-card .icon-box,
.why-feature .why-feature-icon { color: var(--orange); }

/* --- SUBPAGE: Pierwsza Pomoc — combined "Dla kogo / Dlaczego my" split --- */
/* Left column: stacked horizontal info cards (white circular icon + text). */
.info-card { display: flex; gap: 24px; align-items: flex-start; background: var(--bg-light); border: 1px solid rgba(197,198,205,0.5); border-radius: 24px; padding: 24px; margin-bottom: 24px; }
.info-card:last-child { margin-bottom: 0; }
.info-card .info-card-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 9999px; background: var(--white); box-shadow: 0 6px 16px rgba(10,25,47,0.08); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 20px; margin: 0; }
.info-card-body h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.info-card-body p { color: var(--text-muted); margin: 0; }
/* Right column: a light panel reusing the .why-feature rows (plain orange icon). */
.why-panel { background: #E0E3E5; border-radius: 40px; padding: clamp(32px, 4vw, 56px); }
.why-panel .why-feature:last-child { margin-bottom: 0; }
.why-panel .why-feature-icon { background: transparent; box-shadow: none; width: auto; height: auto; font-size: 22px; }

/* Navy variant of the contact CTA banner (orange buttons sit on navy here). */
.cta-banner--navy { background: var(--navy); }

/* Light variant of the contact CTA banner (navy text, on a light card). */
.cta-banner--light { background: var(--bg-light); color: var(--navy); border: 1px solid rgba(197,198,205,0.3); box-shadow: 0 10px 30px rgba(10,25,47,0.05); }
.cta-banner--light h2 { color: var(--navy); }
.cta-banner--light p { color: var(--text-muted); }

/* --- BLOCK THEME GLUE (Site Editor) --- */
/* The front-page sections are built from core blocks that carry the Bootstrap
   layout classes (container/row/col-*) and the component classes above. Core's
   flow-layout adds a top margin (block gap) between sibling blocks; we zero it
   so all spacing comes from the component rules above — i.e. the original look. */
.section .wp-block-group > *,
.hero .wp-block-group > *,
.page-hero .wp-block-group > *,
.fleet-banner .wp-block-group > *,
.contact-container .wp-block-group > * { margin-block-start: 0; }

/* …but let Bootstrap own each .row's gutters, so the vertical gap between
   wrapped columns matches the horizontal gap (e.g. g-4 in the #uslugi services
   grid). Re-assert Bootstrap's gutter mechanism after the neutralization above
   (which would otherwise zero the column top margins that create the row gap). */
.wp-block-group.row { margin-top: calc(-1 * var(--bs-gutter-y)); }
.wp-block-group.row > * { margin-top: var(--bs-gutter-y); }

/* Fleet images: the Gallery block replaces the old carousel. Crop the tiles to
   fill the banner column flush with its rounded edge. */
/*.fleet-banner .col-lg-6 { align-self: stretch; }*/
.fleet-banner .fleet-gallery { margin: 0; height: 100%; gap: 0; }
.fleet-banner .fleet-gallery .wp-block-image,
.fleet-banner .fleet-gallery figure { margin: 0; }
.fleet-banner .fleet-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 250px; }

/* Widen the Bootstrap container at the XXL breakpoint (≥1400px): Bootstrap caps
   .container at 1320px there; raise it to 1525px for a roomier layout. */
@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl { max-width: 1525px; }
}

@media (max-width: 1100px) {
    /* Mobile header: drop the menu buttons and the phone number, keep only the
       phone icon button. */
    .header-nav { display: none; }
    .nav-phone-number { display: none; }
    .nav-phone { margin-left: 0; }
    .fleet-content { padding: 50px; }
    .fleet-img { min-height: 400px; }
    .fleet-banner .fleet-gallery img { min-height: 220px; }
    .contact-container { padding: 40px; }
}

@media (max-width: 600px) {
    /* Smaller logo on mobile. */
    .logo-img { height: 40px; }
    /* Smaller section headings on mobile. */
    .section-header h2 { font-size: 2.5rem; }
    .usp-header h2 { font-size: 2.5rem; }
    .contact-details h2 { font-size: 2.5rem; }
    .fleet-content h2 { font-size: 2.5rem; }
}

/* ==========================================================================
   Testimonials ("Opinie") — CPT cards (Query Loop), light hero, grid
   ========================================================================== */

/* Light, centred testimonials page hero (no cover image). */
.testimonials-hero { padding-top: calc(var(--header-h) + 70px); padding-bottom: 70px; background: var(--bg-light); text-align: center; }
.testimonials-hero .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,107,0,0.1); color: var(--orange); padding: 8px 18px; border-radius: 9999px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; }
.testimonials-hero h1,
.testimonials-hero .wp-block-post-title { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; color: var(--navy); margin-bottom: 24px; line-height: 1.1; }
.testimonials-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }

/* The Query Loop list rendered as a responsive card grid. */
.testimonials-grid.wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.testimonials-grid.wp-block-post-template > li { margin: 0; }

/* Front-page section spacing + "see all" link wrapper. */
.testimonials-section .section-header { margin-bottom: 50px; }
.testimonials-more { text-align: center; margin-top: 50px; }

/* Card. */
.testimonial-card { background: var(--white); border: 1px solid rgba(197,198,205,0.3); border-radius: 40px; padding: 32px; height: 100%; box-shadow: 0 10px 30px rgba(10,25,47,0.05); transition: var(--transition); display: flex; flex-direction: column; }
.testimonial-card:hover { box-shadow: 0 20px 40px rgba(10,25,47,0.08); transform: translateY(-4px); }
.testimonial-stars { color: var(--orange); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote { color: var(--text-muted); font-style: italic; font-size: 1rem; line-height: 1.6; margin-bottom: 32px; flex: 1 1 auto; }
.testimonial-quote p { margin: 0; }

/* Author row: avatar + name/role. */
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-author .testimonial-avatar { margin: 0; flex: 0 0 auto; }
.testimonial-author .testimonial-avatar img { width: 56px; height: 56px; border-radius: 9999px; object-fit: cover; }
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0; }
.testimonial-role { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }
.testimonial-role p { margin: 0; }

@media (max-width: 992px) {
    .testimonials-grid.wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .testimonials-grid.wp-block-post-template { grid-template-columns: 1fr; }
}
