/*
Theme Name: KAP KAP Serwis Hydrauliczny
Theme URI: https://hydraulik.jellydev2.pl/
Author: Jelly
Description: Dedykowany motyw KAP KAP z edytowalnymi blokami, natywnym menu WordPressa i ustawieniami stopki.
Version: 0.3.44
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: hydronaprawa
*/

/* Remove the browser's temporary blue tap overlay without hiding keyboard focus. */
html{-webkit-tap-highlight-color:transparent}
a,button,input,select,textarea,label,summary,[role="button"]{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,summary:focus-visible,[role="button"]:focus-visible{outline:3px solid rgba(54,169,225,.55);outline-offset:3px}

/* Per-block backgrounds selected in the Gutenberg/ACF editor. */
section.kap-section-bg.kap-section-bg-white{background-color:#fff!important;background-image:none!important}
section.kap-section-bg.kap-section-bg-gray{background-color:#f4f6f7!important;background-image:none!important}
section.kap-section-bg.kap-section-bg-blue{background-color:#1269a8!important;background-image:linear-gradient(110deg,#064b8f 0%,#1269a8 50%,#36a9e1 100%)!important}
/* Override older ID-based defaults in both the site and Gutenberg preview. */
#gwarancja.kap-section-bg-white,#opinie.kap-section-bg-white{background-color:#fff!important;background-image:none!important}
#gwarancja.kap-section-bg-gray,#opinie.kap-section-bg-gray{background-color:#f4f6f7!important;background-image:none!important}
#gwarancja.kap-section-bg-blue,#opinie.kap-section-bg-blue{background-color:#1269a8!important;background-image:linear-gradient(110deg,#064b8f 0%,#1269a8 50%,#36a9e1 100%)!important}
.trust-benefits-section.kap-section-bg-white{background-color:#fff!important;background-image:none!important}
.trust-benefits-section.kap-section-bg-gray{background-color:#f4f6f7!important;background-image:none!important}
.trust-benefits-section.kap-section-bg-blue{background-color:#1269a8!important;background-image:linear-gradient(110deg,#064b8f 0%,#1269a8 50%,#36a9e1 100%)!important}
section.kap-section-bg-blue .section-head h2,
section.kap-section-bg-blue .section-head p{color:#fff}
section.kap-section-bg-blue .section-head .section-tag{color:#fff;background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.28)}
section#onas.kap-section-bg-blue .about-text>h2,
section#onas.kap-section-bg-blue .about-text>p{color:#fff}
section#onas.kap-section-bg-blue .about-text>.section-tag{color:#fff;background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.28)}
#gwarancja.kap-section-bg-white .section-head h2,#gwarancja.kap-section-bg-gray .section-head h2,
#opinie.kap-section-bg-white .section-head h2,#opinie.kap-section-bg-gray .section-head h2{color:var(--gray-900)}
#gwarancja.kap-section-bg-white .section-head p,#gwarancja.kap-section-bg-gray .section-head p,
#opinie.kap-section-bg-white .section-head p,#opinie.kap-section-bg-gray .section-head p{color:var(--gray-600)}
#gwarancja.kap-section-bg-white .section-head .section-tag,#gwarancja.kap-section-bg-gray .section-head .section-tag,
#opinie.kap-section-bg-white .section-head .section-tag,#opinie.kap-section-bg-gray .section-head .section-tag{color:#004990;background:#eef7fc;border-color:rgba(0,73,144,.14)}

.faq-aside .btn{position:relative;z-index:2}
.hero-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.hero-actions .btn svg{width:18px;height:18px;flex:0 0 18px}
.hero-qr-kicker{display:flex;align-items:center;gap:7px}
.hero-qr-kicker svg{width:16px;height:16px;flex:0 0 16px}
.hero-qr-link{display:inline-flex;align-items:center;gap:9px}
.hero-qr-link svg{width:17px;height:17px;flex:0 0 17px}

.kap-mobile-form-page{margin:0;min-height:100vh;background:linear-gradient(180deg,#fff 0%,#eef7fc 100%)}
.kap-mobile-form-page header:not(.kap-mobile-topbar),.kap-mobile-form-page footer{display:none}
.kap-mobile-topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;background:rgba(255,255,255,.96);border-bottom:1px solid #e2e7e9;backdrop-filter:blur(12px)}
.kap-mobile-brand{display:flex;align-items:center;width:140px;height:42px}
.kap-mobile-brand img{display:block;width:100%;height:100%;object-fit:contain}
.kap-mobile-call{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;color:#fff;background:linear-gradient(135deg,#36a9e1,#004990);border-radius:999px;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 9px 20px rgba(0,73,144,.22)}
.kap-mobile-call svg{width:16px;height:16px}
.kap-mobile-main{width:min(100%,760px);margin:0 auto;padding:30px 18px 54px}
.kap-mobile-intro{text-align:center;margin-bottom:24px}
.kap-mobile-intro h1{margin:12px 0 10px;color:#004990;font-size:clamp(29px,8vw,40px);line-height:1.08;letter-spacing:-.7px}
.kap-mobile-intro p{max-width:560px;margin:0 auto;color:#5b666b;font-size:15px}
.kap-mobile-tips{margin:20px 0 24px;padding:18px 20px;color:#fff;background:linear-gradient(90deg,rgba(0,54,108,.94),rgba(0,73,144,.70)),#004990 url('assets/images/tlo-k.webp') center/cover no-repeat;border-radius:20px;box-shadow:0 18px 40px rgba(4,44,83,.14)}
.kap-mobile-tips strong{display:block;margin-bottom:7px}.kap-mobile-tips ul{margin:0;padding-left:19px;color:#fff;font-size:13.5px}
.kap-mobile-form-page #zgloszenie{padding:0;background:transparent}.kap-mobile-form-page #zgloszenie>.section-inner{padding:0}.kap-mobile-form-page #zgloszenie .section-head{display:none}.kap-mobile-form-page .form-wrap{max-width:none}
.form-section.kap-form-no-background{background:#f3f7f9;color:#182126}
.form-section.kap-form-no-background::before,.form-section.kap-form-no-background::after{content:none;display:none}
.form-section.kap-form-no-background .section-head h2{color:#182126}
.form-section.kap-form-no-background .section-head p{color:#667278}
.form-section.kap-form-no-background .section-tag{color:#004990;background:#eef7fc;border-color:#c9dfec}
.kap-mobile-form-page #zgloszenie.kap-form-no-background{overflow:visible;background:transparent}
.kap-mobile-form-page #zgloszenie.kap-form-no-background .form-wrap{margin-top:0;border:1px solid #dfe6e9;border-radius:22px;box-shadow:0 14px 34px rgba(4,44,83,.10)}

/* Gutenberg legal documents. */
.page-template-page-legal{background:#f3f7f9}
.kap-legal-hero{position:relative;overflow:hidden;padding:72px 24px 82px;color:#fff;background:linear-gradient(135deg,#00366c,#075a9e)}
.kap-legal-hero::after{content:"";position:absolute;width:420px;height:420px;right:-140px;top:-250px;border-radius:50%;background:rgba(255,255,255,.07)}
.kap-legal-hero-inner{position:relative;z-index:1;max-width:920px;margin:auto}
.kap-legal-breadcrumb{display:flex;gap:8px;align-items:center;margin-bottom:22px;color:rgba(255,255,255,.75);font-size:14px}.kap-legal-breadcrumb a{text-decoration:none}
.kap-legal-label{display:inline-flex;padding:5px 12px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.1);font-size:13px;font-weight:800}
.kap-legal-hero h1{max-width:760px;margin:14px 0 12px;color:#fff;font-size:clamp(36px,5vw,54px);line-height:1.08;letter-spacing:-1.5px}.kap-legal-hero p{max-width:690px;margin:0;color:rgba(255,255,255,.82);font-size:17px}.kap-legal-updated{display:inline-flex;margin-top:22px;color:rgba(255,255,255,.72);font-size:13px}
.kap-legal-layout{position:relative;z-index:2;max-width:1140px;margin:-42px auto 80px;padding:0 24px;display:grid;grid-template-columns:245px minmax(0,1fr);gap:28px;align-items:start}
.kap-legal-layout.no-toc{grid-template-columns:minmax(0,920px);justify-content:center}.kap-legal-toc{position:sticky;top:104px;padding:22px;background:#fff;border:1px solid #e2e7e9;border-radius:18px;box-shadow:0 18px 50px rgba(0,73,144,.09)}
.kap-legal-toc strong{display:block;margin-bottom:12px;font-size:15px}.kap-legal-toc ol{display:block;margin:0;padding:0;list-style:none;counter-reset:legal-toc}.kap-legal-toc li{display:block;counter-increment:legal-toc}.kap-legal-toc a{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;padding:7px 0;color:#5b666b;font-size:13px;line-height:1.35;text-decoration:none}.kap-legal-toc a::before{content:counter(legal-toc) ".";color:#36a9e1;font-weight:800}.kap-legal-toc a:hover{color:#004990}
.kap-legal-card{padding:52px 62px;background:#fff;border:1px solid #e2e7e9;border-radius:24px;box-shadow:0 18px 50px rgba(0,73,144,.09)}
.kap-legal-content>p:first-child{margin:0 0 34px;padding:18px 20px;border-left:4px solid #36a9e1;border-radius:0 12px 12px 0;background:#f2f9fd;color:#39464c}.kap-legal-content h2{scroll-margin-top:110px;margin:42px 0 14px;padding-top:38px;border-top:1px solid #e2e7e9;color:#00366c;font-size:26px;line-height:1.25;letter-spacing:-.3px}.kap-legal-content h2:first-of-type{margin-top:0;padding-top:0;border-top:0}.kap-legal-content h3{margin:26px 0 9px;font-size:18px;line-height:1.35}.kap-legal-content p{margin:0 0 14px;color:#3f494e;font-size:16px;line-height:1.72}.kap-legal-content ul,.kap-legal-content ol{margin:12px 0 18px;padding-left:24px;color:#3f494e}.kap-legal-content li{padding-left:5px;margin:7px 0}.kap-legal-content li::marker{color:#36a9e1;font-weight:800}.kap-legal-content a{color:#004990;font-weight:700;text-underline-offset:3px}.kap-legal-content blockquote{margin:24px 0;padding:18px 20px;border-left:4px solid #36a9e1;background:#f2f9fd}.kap-legal-content table{width:100%;margin:20px 0;border-collapse:separate;border-spacing:0;border:1px solid #e2e7e9;border-radius:14px;overflow:hidden;font-size:14px}.kap-legal-content th,.kap-legal-content td{padding:13px 15px;text-align:left;vertical-align:top;border-bottom:1px solid #e2e7e9}.kap-legal-content th{color:#00366c;background:#f6f9fa}.kap-legal-content tr:last-child th,.kap-legal-content tr:last-child td{border-bottom:0}
@media(max-width:900px){.kap-legal-layout{grid-template-columns:1fr}.kap-legal-toc{position:static}.kap-legal-toc ol{columns:2}.kap-legal-card{padding:40px}}
@media(max-width:600px){.kap-legal-hero{padding:48px 18px 66px}.kap-legal-hero h1{font-size:36px;letter-spacing:-.8px}.kap-legal-hero p{font-size:16px}.kap-legal-layout{margin-top:-28px;padding:0 14px;gap:16px}.kap-legal-toc{padding:18px;border-radius:16px}.kap-legal-toc ol{columns:1}.kap-legal-card{padding:30px 22px;border-radius:18px}.kap-legal-content h2{font-size:23px}.kap-legal-content table,.kap-legal-content tbody,.kap-legal-content tr,.kap-legal-content th,.kap-legal-content td{display:block}.kap-legal-content th{border-bottom:0;padding-bottom:4px}.kap-legal-content td{padding-top:4px}}
@media(max-width:430px){.kap-mobile-topbar{padding:10px 12px}.kap-mobile-brand{width:128px;height:38px}.kap-mobile-call{padding:9px 10px;font-size:12px}.kap-mobile-main{padding-left:14px;padding-right:14px}.kap-mobile-form-page .form-wrap{padding:18px}}

html { scroll-behavior: smooth; }

footer .desc { font-size: 13.5px; max-width: 280px; line-height: 1.7; }
footer .desc p { margin: 0 0 .75em; }
footer .desc p:last-child { margin-bottom: 0; }

/* WordPress navigation markup compatibility. */
.main-nav { list-style: none; margin: 0; }
.main-nav > li { margin: 0; padding: 0; }
.logo::after, .footer-logo::after { display: none !important; }
.logo img, .footer-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
footer .footer-logo { width: min(100%, 260px); height: auto; aspect-ratio: 657.37 / 168.9; margin: 8px 0 20px; align-items: flex-start; }
footer .footer-logo img { width: 100%; height: auto; aspect-ratio: 657.37 / 168.9; object-fit: contain; object-position: left top; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 0 0 10px; }
header .main-nav > li.menu-cta-mobile { display: none; }

@media (max-width: 600px) {
  html { scroll-padding-top: 176px; }

  #uslugi,
  #gwarancja,
  #dlaczego-my,
  #opinie,
  #obszar,
  #faq,
  #kontakt,
  #zgloszenie {
    scroll-margin-top: 0;
  }

  .main-nav { padding-bottom: 7px; }
  header .main-nav > li.menu-cta-mobile { display: block; }
  .main-nav .menu-cta-mobile a { color: #fff; background: #36a9e1; text-align: center; }
  footer .footer-logo { width: min(100%, 230px); margin: 0 0 22px; }
}
