/*
Theme Name: jawo 2807v1
Theme URI: https://jawo24.pl/
Author: Jawo Polska
Author URI: https://jawo24.pl/
Description: Nowoczesny, mobilny motyw blokowy one-page dla grzejnikow Jawo Lamina. Wszystkie sekcje, teksty, obrazy, kolory, naglowek i stopka sa edytowalne w WordPressie.
Requires at least: 6.5
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jawo-2807v1
Tags: block-patterns, block-styles, full-site-editing, one-column, custom-colors, custom-logo, featured-images, accessibility-ready
*/

:root {
  --jawo-navy: #102438;
  --jawo-navy-2: #173a55;
  --jawo-blue: #235d7f;
  --jawo-orange: #d9662b;
  --jawo-orange-dark: #b94b17;
  --jawo-cream: #f6f1e9;
  --jawo-sand: #e9dfd2;
  --jawo-white: #ffffff;
  --jawo-text: #1e2b35;
  --jawo-muted: #5f6b73;
  --jawo-border: #d8dee2;
  --jawo-success: #1e6c54;
  --jawo-shadow: 0 18px 50px rgba(16, 36, 56, 0.12);
  --jawo-radius: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body {
  overflow-x: hidden;
}

body.admin-bar {
  --jawo-admin-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --jawo-admin-offset: 46px;
  }
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid #f2a56d;
  outline-offset: 3px;
}

.wp-site-blocks {
  padding: 0;
}

.jawo-site-header {
  position: sticky;
  top: var(--jawo-admin-offset, 0px);
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(16, 36, 56, 0.1);
  backdrop-filter: blur(12px);
}

.jawo-header-inner {
  min-height: 78px;
  padding: 10px 24px;
}

.jawo-site-header .wp-block-site-logo img {
  max-height: 56px;
  width: auto;
}

.jawo-brand-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jawo-brand-title a {
  color: var(--jawo-navy);
  text-decoration: none;
}

.jawo-site-header .wp-block-navigation-item__content {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 7px;
  font-weight: 700;
  color: var(--jawo-navy);
}

.jawo-site-header .wp-block-navigation-item__content:hover {
  color: var(--jawo-orange-dark);
}

.jawo-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 24px clamp(58px, 8vw, 96px);
  background:
    radial-gradient(circle at 85% 12%, rgba(217, 102, 43, 0.2), transparent 30%),
    radial-gradient(circle at 5% 80%, rgba(35, 93, 127, 0.18), transparent 32%),
    linear-gradient(145deg, #fff 0%, var(--jawo-cream) 100%);
}

.jawo-hero::before {
  content: "";
  position: absolute;
  inset: auto -12vw -16vw auto;
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  border: 1px solid rgba(16, 36, 56, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.jawo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217, 102, 43, 0.11);
  color: var(--jawo-orange-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.jawo-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jawo-orange);
  box-shadow: 0 0 0 5px rgba(217, 102, 43, 0.12);
}

.jawo-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--jawo-navy);
  font-size: clamp(2.45rem, 6.4vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.jawo-hero-lead {
  max-width: 720px;
  margin-top: 28px;
  color: #3e4c56;
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  line-height: 1.65;
}

.jawo-hero .wp-block-buttons {
  margin-top: 32px;
}

.jawo-button-primary .wp-block-button__link,
.jawo-contact-form__button {
  min-height: 54px;
  padding: 15px 25px;
  border: 0;
  border-radius: 999px;
  background: var(--jawo-orange);
  box-shadow: 0 12px 28px rgba(217, 102, 43, 0.28);
  color: #fff;
  font-size: 1.03rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.jawo-button-primary .wp-block-button__link:hover,
.jawo-contact-form__button:hover {
  background: var(--jawo-orange-dark);
  box-shadow: 0 14px 32px rgba(185, 75, 23, 0.3);
  transform: translateY(-2px);
}

.jawo-button-secondary .wp-block-button__link {
  min-height: 54px;
  padding: 14px 24px;
  border: 2px solid var(--jawo-navy);
  border-radius: 999px;
  background: transparent;
  color: var(--jawo-navy);
  font-size: 1.03rem;
  font-weight: 800;
}

.jawo-button-secondary .wp-block-button__link:hover {
  background: var(--jawo-navy);
  color: #fff;
}

.jawo-hero-visual {
  position: relative;
  margin: 0;
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--jawo-shadow);
  transform: rotate(1deg);
}

.jawo-hero-visual img {
  display: block;
  width: 100%;
  border-radius: 24px;
}

.jawo-proof-strip {
  position: relative;
  z-index: 2;
  margin: -34px auto 0;
  padding: 0 24px;
}

.jawo-proof-strip > .wp-block-group__inner-container,
.jawo-proof-inner {
  overflow: hidden;
  border: 1px solid rgba(16, 36, 56, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--jawo-shadow);
}

.jawo-proof-item {
  min-height: 108px;
  padding: 22px 20px;
  border-right: 1px solid var(--jawo-border);
}

.jawo-proof-item:last-child {
  border-right: 0;
}

.jawo-proof-number {
  margin: 0 0 3px;
  color: var(--jawo-orange-dark);
  font-size: 1.45rem;
  font-weight: 900;
}

.jawo-proof-copy {
  margin: 0;
  color: var(--jawo-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.jawo-section {
  padding: clamp(64px, 9vw, 116px) 24px;
}

.jawo-section--cream {
  background: var(--jawo-cream);
}

.jawo-section--navy {
  background:
    radial-gradient(circle at 95% 0, rgba(217, 102, 43, 0.2), transparent 30%),
    linear-gradient(145deg, var(--jawo-navy), #0b1a29);
  color: #fff;
}

.jawo-section--navy h2,
.jawo-section--navy h3,
.jawo-section--navy p,
.jawo-section--navy li {
  color: #fff;
}

.jawo-section-heading {
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.jawo-section-heading h2 {
  margin: 0 0 18px;
  color: var(--jawo-navy);
  font-size: clamp(2rem, 4.7vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.jawo-section--navy .jawo-section-heading h2 {
  color: #fff;
}

.jawo-section-heading p {
  margin: 0;
  color: var(--jawo-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.jawo-feature-grid,
.jawo-model-grid,
.jawo-process-grid {
  gap: 24px;
}

.jawo-feature-card,
.jawo-process-card {
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(16, 36, 56, 0.1);
  border-radius: var(--jawo-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 36, 56, 0.06);
}

.jawo-feature-icon,
.jawo-step-number {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(217, 102, 43, 0.12);
  color: var(--jawo-orange-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.jawo-feature-card h3,
.jawo-process-card h3 {
  margin: 0 0 12px;
  color: var(--jawo-navy);
  font-size: 1.28rem;
}

.jawo-feature-card p,
.jawo-process-card p {
  margin: 0;
  color: var(--jawo-muted);
  line-height: 1.65;
}

.jawo-model-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 56, 0.1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(16, 36, 56, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.jawo-model-card:hover {
  box-shadow: 0 22px 54px rgba(16, 36, 56, 0.14);
  transform: translateY(-5px);
}

.jawo-model-image {
  margin: 0;
  padding: 26px 26px 0;
  background: linear-gradient(180deg, #eef2f4, #fff);
}

.jawo-model-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.jawo-model-body {
  padding: 28px;
}

.jawo-model-kicker {
  margin: 0 0 5px;
  color: var(--jawo-orange-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jawo-model-card h3 {
  margin: 0 0 10px;
  color: var(--jawo-navy);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
}

.jawo-model-short {
  margin: 0 0 21px;
  color: var(--jawo-muted);
  line-height: 1.65;
}

.jawo-model-facts {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.jawo-model-facts li {
  position: relative;
  margin: 9px 0;
  padding-left: 28px;
  color: var(--jawo-text);
}

.jawo-model-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jawo-success);
  font-weight: 900;
}

.jawo-details {
  margin-top: 18px;
  border-top: 1px solid var(--jawo-border);
}

.jawo-details summary {
  min-height: 54px;
  padding: 18px 0;
  color: var(--jawo-navy);
  font-size: 1.02rem;
  font-weight: 850;
  cursor: pointer;
}

.jawo-details summary::marker {
  color: var(--jawo-orange);
}

.jawo-details[open] summary {
  color: var(--jawo-orange-dark);
}

.jawo-details .wp-block-list,
.jawo-details p {
  color: var(--jawo-muted);
  line-height: 1.65;
}

.jawo-note {
  padding: 22px 24px;
  border-left: 5px solid var(--jawo-orange);
  border-radius: 0 16px 16px 0;
  background: #fff7f1;
  color: #593722;
}

.jawo-note p {
  margin: 0;
}

.jawo-tech-visual {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--jawo-shadow);
}

.jawo-tech-visual img {
  display: block;
  width: 100%;
}

.jawo-process-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.jawo-process-card .jawo-step-number {
  background: var(--jawo-orange);
  color: #fff;
}

.jawo-process-card p {
  color: rgba(255, 255, 255, 0.78);
}

.jawo-faq-list {
  max-width: 930px;
}

.jawo-faq-item {
  margin: 0 0 14px;
  padding: 0 24px;
  border: 1px solid var(--jawo-border);
  border-radius: 18px;
  background: #fff;
}

.jawo-faq-item summary {
  min-height: 70px;
  padding: 22px 0;
  color: var(--jawo-navy);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 850;
  cursor: pointer;
}

.jawo-faq-item p {
  margin: 0 0 24px;
  color: var(--jawo-muted);
  line-height: 1.7;
}

.jawo-contact-card {
  padding: clamp(26px, 5vw, 52px);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--jawo-shadow);
}

.jawo-contact-card h2,
.jawo-contact-card h3 {
  color: var(--jawo-navy);
}

.jawo-contact-card p {
  color: var(--jawo-muted);
}

.jawo-contact-list {
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.jawo-contact-list li {
  margin: 13px 0;
  color: var(--jawo-text);
  font-size: 1.06rem;
}

.jawo-contact-list a {
  color: var(--jawo-navy);
  font-weight: 800;
}

.jawo-contact-form {
  display: grid;
  gap: 18px;
}

.jawo-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jawo-contact-form__field label {
  display: block;
  margin-bottom: 7px;
  color: var(--jawo-navy);
  font-weight: 800;
}

.jawo-contact-form__field input,
.jawo-contact-form__field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #aeb8bf;
  border-radius: 12px;
  background: #fff;
  color: var(--jawo-text);
  font: inherit;
}

.jawo-contact-form__field textarea {
  min-height: 150px;
  resize: vertical;
}

.jawo-contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--jawo-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.jawo-contact-form__consent input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.jawo-form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.jawo-form-message--success {
  background: #e6f5ef;
  color: #155743;
}

.jawo-form-message--error {
  background: #fff0ec;
  color: #8f3216;
}

.jawo-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.jawo-site-footer {
  padding: 54px 24px 92px;
  background: #081522;
  color: rgba(255, 255, 255, 0.8);
}

.jawo-site-footer a {
  color: #fff;
}

.jawo-footer-brand {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
}

.jawo-footer-small {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.jawo-mobile-cta {
  display: none;
}

.jawo-editor-help {
  padding: 16px 20px;
  border: 2px dashed var(--jawo-orange);
  border-radius: 14px;
  background: #fff8f3;
  color: #6b3d22;
}

@media (max-width: 950px) {
  .jawo-hero .wp-block-columns,
  .jawo-contact-columns,
  .jawo-tech-columns {
    flex-wrap: wrap !important;
  }

  .jawo-hero .wp-block-column,
  .jawo-contact-columns > .wp-block-column,
  .jawo-tech-columns > .wp-block-column {
    flex-basis: 100% !important;
  }

  .jawo-hero-visual {
    max-width: 650px;
    margin: 30px auto 0;
  }

  .jawo-proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--jawo-border);
  }

  .jawo-proof-item:last-child {
    border-bottom: 0;
  }
}

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

  .jawo-header-inner {
    min-height: 68px;
    padding: 8px 16px;
  }

  .jawo-site-header .wp-block-site-logo img {
    max-height: 46px;
  }

  .jawo-hero,
  .jawo-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .jawo-hero {
    padding-top: 45px;
  }

  .jawo-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.75rem);
  }

  .jawo-hero .wp-block-buttons,
  .jawo-hero .wp-block-button {
    width: 100%;
  }

  .jawo-hero .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }

  .jawo-proof-strip {
    margin-top: -24px;
    padding: 0 18px;
  }

  .jawo-proof-inner .wp-block-columns {
    gap: 0;
  }

  .jawo-feature-card,
  .jawo-model-body,
  .jawo-process-card,
  .jawo-contact-card {
    padding: 24px;
  }

  .jawo-contact-form__row {
    grid-template-columns: 1fr;
  }

  .jawo-mobile-cta {
    position: fixed;
    z-index: 120;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(16, 36, 56, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(16, 36, 56, 0.22);
    backdrop-filter: blur(12px);
  }

  .jawo-mobile-cta .wp-block-button,
  .jawo-mobile-cta .wp-block-button__link {
    width: 100%;
  }

  .jawo-mobile-cta .wp-block-button__link {
    min-height: 48px;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 850;
  }

  .jawo-site-footer {
    padding-bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
