/*
Theme Name:   JASTRA PELLET (Astra Child)
Theme URI:    https://jastrapellet.pl/
Description:  Motyw potomny Astra dla JASTRA PELLET – import i dystrybucja szwedzkiego pelletu BÖTA KVARN PREMIUM+ (hurt B2B). Zachowuje wygląd projektu HTML v5: ciemna leśna zieleń, złote akcenty, kremowe tło, powiększanie zdjęć (lightbox).
Author:       JASTRA PELLET
Template:     astra
Version:      1.6.0
Requires at least: 6.2
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  jastra-astra-child
*/

/*
 * Wszystkie reguły są ograniczone do body.jastra-brand (nagłówek, stopka, tło strony)
 * oraz .jastra-page (treść stron firmowych), dzięki czemu nie wpływają na sklep WooCommerce
 * ani na pozostałe elementy Astry. Kolory i odstępy pochodzą 1:1 z projektu HTML v5.
 */

/* === Projekt v5 (przepisany z zachowaniem wartości) === */
body.jastra-brand {
  --green:#10382e;
  --deep:#09271f;
  --gold:#d4ad70;
  --cream:#f7f4ec;
  --paper:#fffefa;
  --ink:#1d2923;
  --muted:#66736c;
  --line:#e4e5dc;
}
body.jastra-brand * {
  box-sizing:border-box;
}
@media (prefers-reduced-motion:no-preference) {
  html.jastra-html {
    scroll-behavior: smooth;
  }
}
body.jastra-brand {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font:16px/1.65 'DM Sans',Arial,sans-serif;
}
body.jastra-brand .jastra-page h1,
body.jastra-brand .jastra-page h2,
body.jastra-brand .jastra-page h3,
body.jastra-brand .brand {
  font-family:Manrope,'DM Sans',sans-serif;
}
body.jastra-brand :where(.jastra-page h1,.jastra-page h2,.jastra-page h3,.jastra-page p) {
  margin-top:0;
}
body.jastra-brand :where(.jastra-page a,.jastra-header a,.jastra-footer a,.topline a,.contactband a) {
  color:inherit;
  text-decoration:none;
}
body.jastra-brand :where(.jastra-page img,.jastra-header img) {
  display:block;
  max-width:100%;
}
body.jastra-brand .wrap {
  width:min(1180px,calc(100% - 42px));
  margin:auto;
}
body.jastra-brand .topline {
  background:var(--deep);
  color:#d8e2db;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.jastra-brand .topline .wrap {
  padding:9px 0;
  display:flex;
  justify-content:space-between;
  gap:15px;
}
body.jastra-brand .jastra-header {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(16,56,46,.98);
  color:#fff;
  border-bottom:1px solid #ffffff20;
}
body.jastra-brand .nav {
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}
body.jastra-brand .brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.13em;
  font-size:20px;
  line-height:1.1;
}
body.jastra-brand .brand img {
  width:45px;
  height:45px;
  object-fit:contain;
}
body.jastra-brand .brand small {
  display:block;
  font:9px/1.6 'DM Sans',sans-serif;
  letter-spacing:.14em;
  color:#c6d4cb;
}
body.jastra-brand .links {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:10px;
  letter-spacing:.075em;
  font-weight:800;
  text-transform:uppercase;
}
body.jastra-brand .links a {
  white-space:nowrap;
}
body.jastra-brand .links a:hover {
  color:var(--gold);
}
body.jastra-brand .links .nav-cta {
  background:var(--gold);
  color:var(--deep);
  padding:12px 15px;
}
body.jastra-brand .hero {
  background:var(--cream);
  color:var(--green);
  position:relative;
  overflow:hidden;
}
body.jastra-brand .hero:before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(247,244,236,.78) 0%,rgba(247,244,236,.62) 34%,rgba(247,244,236,.16) 56%,rgba(247,244,236,0) 72%),url('assets/images/hero-pellet-right.jpg') center center/cover no-repeat;
  opacity:1;
}
body.jastra-brand .hero:after {
  content:none;
}
body.jastra-brand .hero-inner {
  position:relative;
  z-index:1;
  min-height:540px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(220px,.75fr);
  gap:45px;
  align-items:center;
  padding:72px 0;
}
body.jastra-brand .eyebrow {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.2em;
  font-weight:800;
  color:#526c5d;
  display:flex;
  gap:11px;
  align-items:center;
}
body.jastra-brand .eyebrow:before {
  content:'';
  height:1px;
  width:30px;
  background:var(--gold);
}
body.jastra-brand .jastra-page h1 {
  font-size:clamp(42px,5.4vw,70px);
  letter-spacing:-.055em;
  line-height:1.04;
  margin:22px 0;
}
body.jastra-brand .hero p.hero-subtitle:not(.eyebrow) {
  font-size:clamp(17px,1.8vw,23px);
  font-weight:800;
  letter-spacing:.015em;
  color:var(--green);
  margin:-7px 0 13px;
}
body.jastra-brand .hero h1 em {
  color:#9b7437;
  font-style:normal;
}
body.jastra-brand .hero p:not(.eyebrow) {
  max-width:620px;
  color:#344b40;
  font-size:17px;
}
body.jastra-brand .btns {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
body.jastra-brand .btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:var(--gold);
  color:var(--deep);
  border:1px solid var(--gold);
  padding:14px 19px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:.2s;
}
body.jastra-brand .btn:hover {
  background:#e6c58e;
  border-color:#e6c58e;
  transform:translateY(-1px);
}
body.jastra-brand .btn.outline {
  background:transparent;
  border-color:#c7d5cc;
  color:white;
}
body.jastra-brand .btn.outline:hover {
  background:white;
  color:var(--green);
}
body.jastra-brand .hero-note {
  align-self:end;
  justify-self:end;
  max-width:270px;
  border-left:1px solid var(--gold);
  padding:10px 0 10px 20px;
  margin-bottom:12px;
  color:#fff;
  text-shadow:0 1px 8px #09271f;
  backdrop-filter:blur(1px);
}
body.jastra-brand .hero-note b {
  display:block;
  font:700 24px/1.25 Manrope;
}
body.jastra-brand .hero-note span {
  display:block;
  color:#fff;
  font-size:12px;
  margin-top:7px;
}
body.jastra-brand .trust {
  background:var(--cream);
  border-bottom:1px solid var(--line);
}
body.jastra-brand .trust-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:24px 0;
}
body.jastra-brand .trust-item {
  padding:5px 20px;
  border-right:1px solid #dfe0d7;
}
body.jastra-brand .trust-item:first-child {
  padding-left:0;
}
body.jastra-brand .trust-item:last-child {
  border:0;
}
body.jastra-brand .trust-item b {
  display:block;
  color:var(--green);
  font-size:13px;
}
body.jastra-brand .trust-item span {
  font-size:11px;
  color:var(--muted);
}
body.jastra-brand section.pad {
  padding:88px 0;
}
body.jastra-brand .grid2 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:65px;
  align-items:center;
}
body.jastra-brand figure.photo img {
  width:100%;
  height:460px;
  object-fit:cover;
  background:var(--cream);
}
body.jastra-brand .label {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:800;
  color:#7c8d70;
  margin-bottom:12px;
}
body.jastra-brand .section-title {
  font-size:clamp(32px,4vw,49px);
  line-height:1.1;
  letter-spacing:-.045em;
  color:var(--green);
  margin-bottom:18px;
}
body.jastra-brand .lead {
  font-size:16px;
  color:var(--muted);
  max-width:650px;
}
body.jastra-brand .specs {
  display:grid;
  grid-template-columns:1fr 1fr;
  margin:25px 0;
  border-top:1px solid var(--line);
}
body.jastra-brand .spec {
  padding:12px 10px 12px 0;
  border-bottom:1px solid var(--line);
}
body.jastra-brand .spec small {
  display:block;
  color:var(--muted);
  font-size:11px;
}
body.jastra-brand .spec b {
  color:var(--green);
  font-size:14px;
}
body.jastra-brand .textlink {
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--green);
  border-bottom:1px solid var(--gold);
  padding-bottom:5px;
}
body.jastra-brand .dark {
  background:var(--green);
  color:#fff;
}
body.jastra-brand .dark .section-title {
  color:white;
}
body.jastra-brand .dark .lead {
  color:#cbd8d0;
}
body.jastra-brand .dark .label {
  color:var(--gold);
}
body.jastra-brand .bullets {
  list-style:none;
  padding:0;
  display:grid;
  gap:12px;
  margin:25px 0;
}
body.jastra-brand .bullets li {
  display:flex;
  gap:11px;
  color:#e3ebe5;
  font-size:14px;
}
body.jastra-brand .bullets li:before {
  content:'✓';
  color:var(--gold);
  font-weight:800;
}
body.jastra-brand .split-photo {
  position:relative;
  min-height:440px;
  overflow:hidden;
}
body.jastra-brand .split-photo img {
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  inset:0;
}
body.jastra-brand .split-photo:after {
  content:'';
  position:absolute;
  inset:45% 0 0;
  background:linear-gradient(transparent,rgba(4,25,19,.75));
}
body.jastra-brand .photo-caption {
  position:absolute;
  z-index:1;
  bottom:22px;
  left:25px;
  color:white;
}
body.jastra-brand .photo-caption b {
  font:800 32px Manrope;
  display:block;
}
body.jastra-brand .cream {
  background:var(--cream);
}
body.jastra-brand .headrow {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:32px;
}
body.jastra-brand .headrow .section-title {
  margin:0;
  max-width:640px;
}
body.jastra-brand .headrow p {
  max-width:360px;
  color:var(--muted);
  font-size:14px;
  margin:0;
}
body.jastra-brand .cards {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
body.jastra-brand .card {
  padding:30px;
  background:var(--paper);
  border:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:260px;
}
body.jastra-brand .card .num {
  font-size:10px;
  letter-spacing:.15em;
  color:#8b9a7c;
  font-weight:800;
}
body.jastra-brand .card h3 {
  font-size:25px;
  line-height:1.2;
  color:var(--green);
  margin:15px 0 10px;
}
body.jastra-brand .card p {
  font-size:14px;
  color:var(--muted);
}
body.jastra-brand .card .textlink {
  margin-top:auto;
}
body.jastra-brand .gallery {
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  grid-template-rows:220px 220px;
  gap:14px;
}
body.jastra-brand .gallery img {
  width:100%;
  height:100%;
  object-fit:cover;
}
body.jastra-brand .gallery > figure:first-child {
  grid-row:span 2;
}
body.jastra-brand .about-band {
  display:grid;
  grid-template-columns:.55fr 1.45fr;
  gap:65px;
  align-items:start;
}
body.jastra-brand .monogram {
  font:800 clamp(38px,6vw,74px) Manrope;
  letter-spacing:.08em;
  color:var(--green);
  border-left:3px solid var(--gold);
  padding:10px 0 10px 22px;
}
body.jastra-brand .contactband {
  background:#e9e9df;
  padding:60px 0;
}
body.jastra-brand .contactinner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
}
body.jastra-brand .contactinner h2 {
  font-size:clamp(28px,3.5vw,40px);
  line-height:1.15;
  color:var(--green);
  margin-bottom:8px;
}
body.jastra-brand .contactinner p {
  margin:0;
  color:var(--muted);
}
body.jastra-brand .pagehero {
  background:var(--green);
  color:white;
  padding:72px 0 64px;
  position:relative;
  overflow:hidden;
}
body.jastra-brand .pagehero:after {
  content:'';
  position:absolute;
  right:-100px;
  top:-170px;
  width:520px;
  height:520px;
  border:1px solid #d4ad7033;
  border-radius:50%;
  box-shadow:0 0 0 55px #d4ad7010,0 0 0 110px #d4ad7008;
}
body.jastra-brand .pagehero .wrap {
  position:relative;
  z-index:1;
}
body.jastra-brand .pagehero h1 {
  font-size:clamp(38px,5vw,60px);
  max-width:850px;
}
body.jastra-brand .pagehero p:not(.eyebrow):not(.breadcrumb) {
  color:#d5e0d8;
  max-width:680px;
  font-size:17px;
}
body.jastra-brand .breadcrumb {
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#c5d3ca;
  margin-bottom:22px;
}
body.jastra-brand .photo-row {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
body.jastra-brand .photo-row img {
  height:250px;
  width:100%;
  object-fit:cover;
}
body.jastra-brand .details {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
}
body.jastra-brand .detailbox {
  padding:27px;
  border:1px solid var(--line);
  background:white;
}
body.jastra-brand .detailbox h3 {
  color:var(--green);
  font-size:22px;
}
body.jastra-brand .contact-grid {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:45px;
}
body.jastra-brand .contact-list {
  display:grid;
  gap:16px;
}
body.jastra-brand .contact-list a,
body.jastra-brand .contact-list div {
  padding:17px;
  background:var(--cream);
  border-left:2px solid var(--gold);
}
body.jastra-brand .contact-list small {
  display:block;
  color:var(--muted);
  font-size:11px;
}
body.jastra-brand .contact-list b {
  color:var(--green);
}
body.jastra-brand .jastra-page form {
  display:grid;
  gap:14px;
}
body.jastra-brand .jastra-page label {
  font-size:12px;
  font-weight:700;
  color:var(--green);
}
body.jastra-brand .jastra-page input,
body.jastra-brand .jastra-page textarea,
body.jastra-brand .jastra-page select {
  display:block;
  width:100%;
  font:inherit;
  border:1px solid #d9ded5;
  background:white;
  padding:12px;
  margin-top:6px;
  border-radius:0;
}
body.jastra-brand .jastra-page textarea {
  min-height:120px;
  resize:vertical;
}
body.jastra-brand .notice {
  font-size:11px;
  color:var(--muted);
}
body.jastra-brand .jastra-footer {
  background:var(--deep);
  color:#e5ece7;
  padding:40px 0 20px;
}
body.jastra-brand .foot-top {
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding-bottom:28px;
}
body.jastra-brand .footbrand {
  font:800 21px Manrope;
  letter-spacing:.15em;
}
body.jastra-brand .footbrand small {
  display:block;
  font:10px 'DM Sans';
  letter-spacing:.1em;
  color:#b9c9bf;
  margin-top:5px;
}
body.jastra-brand .footnav {
  display:flex;
  flex-wrap:wrap;
  gap:17px;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.jastra-brand .footbottom {
  border-top:1px solid #ffffff24;
  padding-top:16px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#aebfb4;
  font-size:10px;
}
@media(max-width:950px) {
  body.jastra-brand .links {
  gap:10px;
  }
  body.jastra-brand .links a {
  font-size:9px;
  }
  body.jastra-brand .grid2 {
  gap:35px;
  }
}
@media(max-width:720px) {
  body.jastra-brand .wrap {
  width:calc(100% - 30px);
  }
  body.jastra-brand .hero:after {
  content:none;
  }
  body.jastra-brand .hero:before {
  background:linear-gradient(180deg,rgba(247,244,236,.90) 0%,rgba(247,244,236,.78) 48%,rgba(247,244,236,.22) 100%),url('assets/images/hero-pellet-right.jpg') center center/cover;
  }
  body.jastra-brand .hero-inner {
  gap:20px;
  }
  body.jastra-brand .hero-note {
  color:var(--green);
  text-shadow:none;
  border-color:var(--gold);
  max-width:100%;
  background:#f7f4ece0;
  padding:12px 15px;
  }
  body.jastra-brand .hero-note span {
  color:#344b40;
  }
  body.jastra-brand .hero-note b {
  font-size:20px;
  }
  body.jastra-brand .topline .wrap {
  justify-content:center;
  text-align:center;
  }
  body.jastra-brand .topline .wrap span:last-child {
  display:none;
  }
  body.jastra-brand .nav {
  padding:13px 0;
  display:block;
  }
  body.jastra-brand .brand {
  margin-bottom:12px;
  }
  body.jastra-brand .links {
  overflow-x:auto;
  padding:5px 0 9px;
  gap:17px;
  }
  body.jastra-brand .links a {
  font-size:9px;
  }
  body.jastra-brand .hero-inner {
  grid-template-columns:1fr;
  min-height:0;
  padding:65px 0 40px;
  gap:25px;
  }
  body.jastra-brand .hero-note {
  justify-self:start;
  margin:0;
  }
  body.jastra-brand .trust-grid {
  grid-template-columns:1fr 1fr;
  gap:17px;
  }
  body.jastra-brand .trust-item {
  padding:0;
  border:0;
  }
  body.jastra-brand .trust-item:first-child {
  padding-left:0;
  }
  body.jastra-brand section.pad {
  padding:60px 0;
  }
  body.jastra-brand .grid2,
  body.jastra-brand .about-band,
  body.jastra-brand .contact-grid,
  body.jastra-brand .details {
  grid-template-columns:1fr;
  gap:28px;
  }
  body.jastra-brand figure.photo img {
  height:320px;
  }
  body.jastra-brand .split-photo {
  min-height:320px;
  }
  body.jastra-brand .headrow,
  body.jastra-brand .contactinner,
  body.jastra-brand .foot-top,
  body.jastra-brand .footbottom {
  align-items:flex-start;
  flex-direction:column;
  }
  body.jastra-brand .cards,
  body.jastra-brand .photo-row {
  grid-template-columns:1fr;
  }
  body.jastra-brand .gallery {
  grid-template-columns:1fr 1fr;
  grid-template-rows:190px 190px 190px;
  }
  body.jastra-brand .gallery > figure:first-child {
  grid-row:span 2;
  }
  body.jastra-brand .photo-row img {
  height:240px;
  }
  body.jastra-brand .pagehero {
  padding:55px 0;
  }
  body.jastra-brand .footnav {
  gap:13px;
  }
  body.jastra-brand .specs {
  gap:0;
  }
}
body.jastra-brand .options-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
body.jastra-brand .option-panel {
  background:var(--paper);
  border:1px solid var(--line);
  padding:30px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:250px;
}
body.jastra-brand .option-panel .label {
  color:#8b713e;
}
body.jastra-brand .option-panel h3 {
  font-size:25px;
  line-height:1.2;
  color:var(--green);
  margin:4px 0 12px;
}
body.jastra-brand .option-panel p:not(.label):not(.pickup-address) {
  color:var(--muted);
  font-size:14px;
}
body.jastra-brand .option-panel .textlink {
  margin-top:auto;
}
body.jastra-brand .pickup-address {
  display:block;
  color:var(--green);
  font-weight:800;
  margin:9px 0;
}
body.jastra-brand .promo-feature {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:38px;
  align-items:center;
  background:var(--deep);
  color:#fff;
  padding:28px;
  margin-top:28px;
}
body.jastra-brand .promo-feature img {
  width:100%;
  height:auto;
  display:block;
  box-shadow:0 12px 32px #0003;
}
body.jastra-brand .promo-feature h3 {
  font-size:clamp(25px,3vw,36px);
  line-height:1.12;
  color:#fff;
  margin:8px 0 14px;
}
body.jastra-brand .promo-feature p:not(.label) {
  color:#d3dfd7;
}
@media(max-width:720px) {
  body.jastra-brand .options-grid,
  body.jastra-brand .promo-feature {
  grid-template-columns:1fr;
  }
  body.jastra-brand .option-panel {
  min-height:0;
  }
  body.jastra-brand .promo-feature {
  padding:18px;
  gap:20px;
  }
}
body.jastra-brand .gallery img,
body.jastra-brand .promo-feature img,
body.jastra-brand figure.photo img,
body.jastra-brand .photo-row img,
body.jastra-brand .split-photo img {
  cursor: zoom-in;
  transition: transform .32s ease, filter .32s ease;
}
@media (hover:hover) and (pointer:fine) {
  body.jastra-brand .gallery img:hover,
  body.jastra-brand .promo-feature img:hover,
  body.jastra-brand figure.photo img:hover,
  body.jastra-brand .photo-row img:hover,
  body.jastra-brand .split-photo img:hover {
  transform: scale(1.04);
  filter: saturate(1.04);
  }
}
body.jastra-brand .jastra-lightbox {
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(5,20,15,.90);
  opacity:0;
  visibility:hidden;
  transition:opacity .22s ease, visibility .22s ease;
}
body.jastra-brand .jastra-lightbox.is-open {
  opacity:1;
  visibility:visible;
}
body.jastra-brand .jastra-lightbox img {
  display:block;
  max-width:min(94vw,1400px);
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 18px 70px #0008;
  cursor:zoom-out;
}
body.jastra-brand .jastra-lightbox-close {
  position:absolute;
  top:16px;
  right:22px;
  width:44px;
  height:44px;
  border:1px solid #ffffff80;
  border-radius:50%;
  background:#10382e;
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
body.jastra-lightbox-open {
  overflow:hidden;
}
@media (prefers-reduced-motion:reduce) {
  body.jastra-brand .gallery img,
  body.jastra-brand .promo-feature img,
  body.jastra-brand figure.photo img,
  body.jastra-brand .photo-row img,
  body.jastra-brand .split-photo img,
  body.jastra-brand .jastra-lightbox {
  transition:none;
  }
}

/* === Adaptacja do bloków WordPressa i Astry === */

/* Odstępy: w oryginale akapity miały domyślny margines dolny 1em, nagłówki – domyślne marginesy przeglądarki.
   :where() daje niską specyficzność, więc reguły klas projektu (np. .label, .section-title) nadal wygrywają. */
body.jastra-brand :where(.jastra-page p) { margin-bottom: 1em; }
body.jastra-brand :where(.jastra-page h1) { margin-bottom: .67em; }
body.jastra-brand :where(.jastra-page h2) { margin-bottom: .83em; }
body.jastra-brand :where(.jastra-page h3) { margin-bottom: 1em; }
body.jastra-brand :where(.jastra-page .wp-block-group > *) { margin-top: 0; }
body.jastra-brand :where(.jastra-page figure) { margin: 0; }
/* Nagłówki dziedziczą kolor z sekcji (jak w oryginale); Astra potrafi narzucać własny kolor/wagę/transformację */
body.jastra-brand :where(.jastra-page h1, .jastra-page h2, .jastra-page h3) { color: inherit; font-weight: 700; text-transform: none; letter-spacing: normal; }
body.jastra-brand .jastra-page { display: block; }

/* Etykiety/nadtytuły były <div>-ami; w blokach WP to akapity – zerujemy margines i dziedziczenie z `p`. */
body.jastra-brand .jastra-page p.eyebrow,
body.jastra-brand .jastra-page p.num,
body.jastra-brand .jastra-page p.monogram { margin: 0; }

/* Zdjęcia w blokach <figure> */
body.jastra-brand .gallery figure,
body.jastra-brand .split-photo figure,
body.jastra-brand .promo-feature figure { min-width: 0; min-height: 0; }
body.jastra-brand .promo-feature img { aspect-ratio: auto 3 / 2; }
body.jastra-brand figure.family-banner { margin: 55px 0 0; }
body.jastra-brand figure.family-banner img { width: 100%; height: auto; display: block; border: 1px solid var(--line); aspect-ratio: auto 1885 / 639; }
@media (max-width: 720px) { body.jastra-brand figure.family-banner { margin-top: 35px; } }

/* Zamiast stylów inline z oryginału */
body.jastra-brand .bullets.on-light li { color: var(--ink); }
body.jastra-brand .contactband .btn.outline { color: var(--green); border-color: var(--green); }

/* Lista linków "tekstowych" jako element siatki */
body.jastra-brand .jastra-skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; background: var(--gold); color: var(--deep); padding: 10px 16px; font-weight: 700; }
body.jastra-brand .jastra-skip-link:focus { left: 10px; top: 10px; }

/* Sticky nagłówek a pasek administratora WordPressa */
body.admin-bar.jastra-brand .jastra-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.jastra-brand .jastra-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.jastra-brand .jastra-header { top: 0; } }

/* Widoczny fokus (klawiatura) – Astra potrafi wyłączać obrys */
body.jastra-brand :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Formularz zapytania (shortcode [jastra_formularz]) */
body.jastra-brand .jastra-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body.jastra-brand .form-status { padding: 14px 16px; margin: 0 0 18px; border-left: 3px solid var(--gold); background: var(--cream); color: var(--green); font-size: 14px; }
body.jastra-brand .form-status.is-error { border-left-color: #a33a2b; color: #6d2418; background: #fbefec; }
body.jastra-brand .form-status a { text-decoration: underline; }

/* Lightbox: blokada przewijania także na <html> (iOS Safari ignoruje overflow tylko na <body>) */
html.jastra-lightbox-open { overflow: hidden; }
body.jastra-brand .jastra-lightbox { overscroll-behavior: contain; touch-action: pinch-zoom; }

/* Pola formularza: kolor tekstu jak w oryginale (Astra ustawia własny kolor pól) */
body.jastra-brand .jastra-page :is(input, textarea, select) { color: #000; }

/* Lightbox: widoczność przełączana natychmiast przy otwarciu (inaczej przycisk × nie dostaje fokusu,
   bo okno jest jeszcze visibility:hidden w trakcie przejścia); przy zamknięciu – po wygaszeniu. */
body.jastra-brand .jastra-lightbox { transition: opacity .22s ease, visibility 0s linear .22s; }
body.jastra-brand .jastra-lightbox.is-open { transition: opacity .22s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  body.jastra-brand .jastra-lightbox,
  body.jastra-brand .jastra-lightbox.is-open { transition: none; }
}

/* === Sklep: sekcja „Informacje dla klientów” w stopce (tylko strony sklepu) === */
body.jastra-brand .shop-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
body.jastra-brand .shop-info-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
body.jastra-brand .shop-info .shop-info-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 11px; letter-spacing: .08em; }
body.jastra-brand .shop-info .shop-info-links a {
  display: inline-block;
  visibility: visible;
  opacity: 1;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d6e2db !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
body.jastra-brand .shop-info .shop-info-links a:hover { color: #fff !important; border-bottom-color: var(--gold); }
@media (max-width: 720px) { body.jastra-brand .shop-info .shop-info-links { gap: 10px 20px; } }

/* Strony informacyjne sklepu (regulamin itd.) – typografia w stylu JASTRA, układ zostaje z Astry */
body.jastra-brand:not(.jastra-woo) .site-content .entry-title,
body.jastra-brand:not(.jastra-woo) .site-content .entry-content :where(h1, h2, h3) {
  font-family: Manrope, 'DM Sans', sans-serif;
  color: var(--green);
  font-weight: 800;
  letter-spacing: -.02em;
}
body.jastra-brand:not(.jastra-woo) .site-content .entry-content { color: var(--ink); }

/* === Aktywna pozycja menu (nagłówek, także pasek przewijany na telefonie) === */
body.jastra-brand .links a { position: relative; padding-bottom: 4px; }
body.jastra-brand .links a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
body.jastra-brand .links a.nav-cta[aria-current="page"] { color: var(--deep); box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px var(--gold); }
@media (max-width: 720px) { body.jastra-brand .links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); } body.jastra-brand .links a.nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px var(--gold); } }
