/*
Theme Name: Jawo Heat
Theme URI: https://jawo24.pl/
Author: Jawo Polska
Description: Lekki motyw blokowy Gutenberg dla Jawo Polska, przygotowany pod WooCommerce.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: jawo-heat
Tags: block-patterns, full-site-editing, e-commerce, wide-blocks
*/

:root {
  --jawo-ink: #111922;
  --jawo-ink-soft: #23303b;
  --jawo-heat: #ed6637;
  --jawo-heat-dark: #c9471f;
  --jawo-paper: #f5f3ee;
  --jawo-sand: #ebe3d8;
  --jawo-line: #dfe3e6;
  --jawo-muted: #66727c;
  --jawo-white: #ffffff;
  --jawo-success: #1d7a54;
  --jawo-radius-sm: 12px;
  --jawo-radius: 22px;
  --jawo-radius-lg: 34px;
  --jawo-shadow-sm: 0 12px 34px rgba(17, 25, 34, .08);
  --jawo-shadow: 0 24px 70px rgba(17, 25, 34, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: .18em; }
img, svg { max-width: 100%; height: auto; }

.jawo-topbar {
  background: var(--jawo-ink);
  color: #fff;
  font-size: .86rem;
  line-height: 1.4;
}
.jawo-topbar a { color: #fff; text-decoration: none; font-weight: 750; }
.jawo-topbar .wp-block-group { min-height: 38px; }

.jawo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(17, 25, 34, .08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.admin-bar .jawo-header { top: 32px; }
.jawo-brand { text-decoration: none; color: var(--jawo-ink); display: inline-flex; align-items: center; gap: 11px; }
.jawo-brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: var(--jawo-heat);
  color: #fff;
  font-weight: 950;
  font-size: 1.25rem;
  box-shadow: 0 9px 22px rgba(237,102,55,.25);
}
.jawo-brand-copy { display: inline-flex; flex-direction: column; line-height: .95; font-weight: 950; letter-spacing: .04em; }
.jawo-brand-copy small { font-size: .66rem; color: var(--jawo-muted); letter-spacing: .12em; margin-top: 6px; text-transform: uppercase; }
.jawo-header .wp-block-navigation-item__content { font-weight: 760; text-decoration: none; }
.jawo-header .wp-block-navigation-item__content:hover { color: var(--jawo-heat); }

.jawo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jawo-heat-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jawo-eyebrow::before {
  content: "";
  width: 29px;
  height: 2px;
  background: currentColor;
}

.jawo-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgba(237,102,55,.16), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, #f2f0ea 100%);
  border-bottom: 1px solid var(--jawo-line);
}
.jawo-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -250px;
  bottom: -310px;
  border: 1px solid rgba(237,102,55,.3);
  box-shadow: 0 0 0 70px rgba(237,102,55,.04), 0 0 0 140px rgba(237,102,55,.025);
}
.jawo-hero-grid { position: relative; z-index: 2; min-height: 690px; }
.jawo-hero-copy { padding-block: clamp(64px, 9vw, 128px); }
.jawo-hero-copy h1 { max-width: 850px; text-wrap: balance; }
.jawo-lead { color: var(--jawo-muted); max-width: 690px; }
.jawo-actions { gap: 12px; }
.jawo-proof { gap: 10px 22px; margin-top: 28px; }
.jawo-proof-item { display: inline-flex; align-items: center; gap: 9px; color: var(--jawo-ink-soft); font-size: .91rem; font-weight: 680; }
.jawo-proof-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(29,122,84,.12);
  color: var(--jawo-success);
  font-weight: 950;
}
.jawo-hero-visual {
  position: relative;
  min-height: 560px;
  align-self: stretch;
  display: grid;
  place-items: center;
}
.jawo-heater-stage {
  position: relative;
  width: min(100%, 700px);
  aspect-ratio: 1.25 / 1;
  border-radius: var(--jawo-radius-lg);
  background: linear-gradient(145deg, #e9eef0, #cfd9de);
  box-shadow: var(--jawo-shadow);
  overflow: hidden;
}
.jawo-heater-stage::before {
  content: "";
  position: absolute;
  inset: 14% 4% 3% 2%;
  background: url("assets/images/heater.svg") center / contain no-repeat;
  filter: drop-shadow(0 24px 22px rgba(17,25,34,.18));
}
.jawo-heater-stage::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 26%;
  left: 16%;
  bottom: 7%;
  background: radial-gradient(ellipse, rgba(17,25,34,.22), transparent 68%);
  filter: blur(8px);
  z-index: -1;
}
.jawo-heat-wave {
  position: absolute;
  top: 8%;
  width: 58px;
  height: 86px;
  border: 2px solid rgba(237,102,55,.58);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  animation: jawo-float 3.5s ease-in-out infinite;
}
.jawo-heat-wave:nth-child(1) { left: 31%; }
.jawo-heat-wave:nth-child(2) { left: 49%; animation-delay: .6s; }
.jawo-heat-wave:nth-child(3) { left: 67%; animation-delay: 1.2s; }
@keyframes jawo-float { 0%,100% { transform: translateY(9px); opacity: .24; } 50% { transform: translateY(-10px); opacity: .9; } }
.jawo-float-card {
  position: absolute;
  z-index: 3;
  max-width: 260px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--jawo-shadow-sm);
  backdrop-filter: blur(12px);
}
.jawo-float-card strong { display: block; font-size: 1rem; line-height: 1.25; }
.jawo-float-card small { display: block; margin-top: 5px; color: var(--jawo-muted); line-height: 1.45; }
.jawo-float-card--top { top: 6%; right: -2%; }
.jawo-float-card--bottom { left: -4%; bottom: 7%; }

.jawo-trust { background: #fff; border-bottom: 1px solid var(--jawo-line); }
.jawo-trust-item { min-height: 112px; border-right: 1px solid var(--jawo-line); }
.jawo-trust-item:last-child { border-right: 0; }
.jawo-trust-item strong { display: block; }
.jawo-trust-item span { display: block; color: var(--jawo-muted); font-size: .88rem; margin-top: 4px; }

.jawo-section { padding-block: clamp(70px, 8vw, 118px); }
.jawo-section-head { margin-bottom: 42px; }
.jawo-section-head p { color: var(--jawo-muted); max-width: 720px; }
.jawo-card {
  height: 100%;
  border: 1px solid var(--jawo-line);
  border-radius: var(--jawo-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17,25,34,.02);
  transition: transform .22s ease, box-shadow .22s ease;
}
.jawo-card:hover { transform: translateY(-5px); box-shadow: var(--jawo-shadow-sm); }
.jawo-product-visual {
  min-height: 255px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #edf1f3, #d5dee2);
  overflow: hidden;
}
.jawo-product-visual::before {
  content: "";
  width: 90%;
  height: 90%;
  background: url("assets/images/heater.svg") center / contain no-repeat;
}
.jawo-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--jawo-ink);
  font-size: .72rem;
  font-weight: 850;
  box-shadow: var(--jawo-shadow-sm);
}
.jawo-card-body { padding: 25px; }
.jawo-card-body p { color: var(--jawo-muted); }
.jawo-specs { gap: 8px; }
.jawo-spec {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--jawo-paper);
  font-size: .78rem;
  font-weight: 800;
}

.jawo-tech {
  position: relative;
  overflow: hidden;
  background: var(--jawo-ink);
  color: #fff;
}
.jawo-tech::after {
  content: "";
  position: absolute;
  width: 660px;
  height: 660px;
  right: -320px;
  bottom: -370px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,102,55,.4), transparent 66%);
}
.jawo-tech p { color: #c3ccd3; }
.jawo-tech .jawo-eyebrow { color: #ffb195; }
.jawo-tech-grid { position: relative; z-index: 2; }
.jawo-tech-diagram {
  min-height: 470px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  background: rgba(255,255,255,.05);
  padding: 34px;
}
.jawo-core {
  width: min(100%, 480px);
  aspect-ratio: 1.6 / 1;
  border-radius: 28px;
  padding: 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,.08) 31px 34px),
    linear-gradient(145deg, #f1f3f4, #bfc9cf);
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  position: relative;
}
.jawo-core::before {
  content: "CERAMICZNY RDZEŃ AKUMULACYJNY";
  position: absolute;
  inset: 22% 15%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #d7653f, #a63a1d);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.jawo-number-row { gap: 13px; }
.jawo-number {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  color: #ffb195;
  background: rgba(237,102,55,.18);
  font-weight: 950;
}

.jawo-selector {
  border-radius: var(--jawo-radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--jawo-heat), var(--jawo-heat-dark));
  box-shadow: var(--jawo-shadow);
}
.jawo-selector p { color: #ffe7de; }
.jawo-selector-card {
  border-radius: var(--jawo-radius);
  background: #fff;
  color: var(--jawo-ink);
  box-shadow: var(--jawo-shadow-sm);
}
.jawo-selector-card .wp-block-button__link { width: 100%; }

.jawo-process-card {
  min-height: 235px;
  padding: 26px;
  border: 1px solid var(--jawo-line);
  border-radius: var(--jawo-radius);
  background: #fff;
}
.jawo-process-num {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--jawo-ink);
  font-weight: 950;
}
.jawo-process-card p { color: var(--jawo-muted); }

.jawo-case {
  border-radius: var(--jawo-radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17,25,34,.04), rgba(17,25,34,.9)),
    radial-gradient(circle at 72% 20%, #eaf3f8 0 17%, transparent 18%),
    linear-gradient(145deg, #8faabb, #d8e2e7 50%, #5a7484);
  color: #fff;
  min-height: 480px;
}
.jawo-case p { color: #e1e7eb; }
.jawo-metric {
  height: 100%;
  border: 1px solid var(--jawo-line);
  border-radius: var(--jawo-radius);
  background: #fff;
}
.jawo-metric strong { display: block; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; }
.jawo-metric p { color: var(--jawo-muted); }

.jawo-faq .wp-block-details {
  margin-block: 10px;
  border: 1px solid var(--jawo-line);
  border-radius: 16px;
  background: #fff;
  padding: 0 22px;
}
.jawo-faq summary { cursor: pointer; padding-block: 20px; font-weight: 850; }
.jawo-faq .wp-block-details p { color: var(--jawo-muted); padding-bottom: 18px; }

.jawo-cta {
  border-radius: var(--jawo-radius-lg);
  background: var(--jawo-ink);
  color: #fff;
}
.jawo-cta p { color: #c5ced5; }

.jawo-footer { background: #0b1117; color: #fff; }
.jawo-footer a { color: #c3cdd4; text-decoration: none; }
.jawo-footer a:hover { color: #fff; }
.jawo-footer .is-style-none { list-style: none; padding-left: 0; }
.jawo-footer p, .jawo-footer li { color: #aab5bd; }
.jawo-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }

.jawo-page-hero { background: var(--jawo-paper); border-bottom: 1px solid var(--jawo-line); }
.jawo-content-shell { padding-block: clamp(55px, 8vw, 100px); }
.jawo-content-shell > * { max-width: 820px; }
.jawo-content-shell > .alignwide { max-width: var(--wp--style--global--wide-size); }
.jawo-content-shell > .alignfull { max-width: none; }

.wp-element-button,
.wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17,25,34,.15); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; }

.woocommerce ul.products li.product,
.woocommerce div.product div.summary,
.wc-block-product {
  border-radius: var(--jawo-radius);
}
.woocommerce span.onsale { background: var(--jawo-heat); }
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt { background: var(--jawo-heat); }

@media (max-width: 1100px) {
  .jawo-hero-grid { min-height: auto; }
  .jawo-float-card--top { right: 1%; }
  .jawo-float-card--bottom { left: 1%; }
}
@media (max-width: 900px) {
  .admin-bar .jawo-header { top: 46px; }
  .jawo-hero-copy { padding-bottom: 24px; }
  .jawo-hero-visual { min-height: 480px; }
  .jawo-trust-item { border-right: 0; border-bottom: 1px solid var(--jawo-line); }
  .jawo-trust-item:last-child { border-bottom: 0; }
  .jawo-tech-diagram { min-height: 360px; }
}
@media (max-width: 620px) {
  .jawo-topbar { display: none; }
  .jawo-header .wp-block-group { padding-inline: 18px !important; }
  .jawo-brand-mark { width: 36px; height: 36px; }
  .jawo-hero-grid { padding-inline: 18px !important; }
  .jawo-hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.45rem) !important; }
  .jawo-actions { flex-direction: column; align-items: stretch; }
  .jawo-actions .wp-block-button, .jawo-actions .wp-block-button__link { width: 100%; }
  .jawo-hero-visual { min-height: 390px; }
  .jawo-heater-stage { aspect-ratio: 1 / 1; }
  .jawo-float-card { max-width: 205px; padding: 12px 14px; }
  .jawo-float-card--bottom { bottom: 2%; }
  .jawo-float-card--top { top: 1%; }
  .jawo-section { padding-block: 64px; }
  .jawo-selector, .jawo-cta { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
