/* =====================================================================
   AOÛT HERO START (v4.0.3: telefon — pionowe zdjęcie 1086×1648 przez img.php; desktop bez zmian)
   Hero strony głównej (WoodMart Slider, strona id 10889).
   Wkleić na końcu Global Custom CSS, PO blokach AOÛT v6 / POPRAWKA-1/2.
   Wymaga klasy CSS "aout-hero" na bloku Slider (+ opcjonalnie "aout-hero--b"
   = wariant telefonu B: zdjęcie w pełnej proporcji, tekst pod spodem).
   Pliki: hero-desktop.webp, hero-mobile.jpg (wariant A) / hero-mobile-b.jpg (B).
   Rollback: usunąć blok od „AOÛT HERO START” do „AOÛT HERO END”,
   przywrócić stare zdjęcie i teksty slajdu (PLAN.md, pkt 1), zdjąć klasy.
   ===================================================================== */
/* AOÛT HERO START */

/* 0. Nagłówek na stronie głównej w normalnym przepływie (zdjęcie zaczyna się pod paskiem) */
body.home.wd-header-overlap .whb-header .whb-main-header { position: relative !important; }

/* 1. Slider: jeden slajd, bez strzałek i kropek */
.home .wd-slider.aout-hero { margin-bottom: 80px; }
.home .wd-slider.aout-hero .wd-nav-arrows,
.home .wd-slider.aout-hero .wd-nav-pagin-wrap { display: none !important; }

/* WoodMart (autoheight) zamraża wysokość karuzeli na 650 px i ucina dół zdjęcia – wyłączamy */
.home .wd-slider.aout-hero .wd-carousel-inner,
.home .wd-slider.aout-hero .wd-carousel,
.home .wd-slider.aout-hero .wd-carousel-wrap { height: auto !important; }

/* 2. Komputer — baza (nadpisywana w @media min-width: 1025px, v3).
      Tablet (≤1024) i telefon korzystają z reguł poniżej i NIE dziedziczą v3. */
.home .wd-slider.aout-hero .wd-slide {
  aspect-ratio: 2 / 1;
  min-height: 520px !important;
  max-height: max(520px, calc(100vh - 150px));
  height: auto !important;
  padding: 0 !important;
  color: var(--aout-ink, #2b2226);
}

/* 2b. Komputer v3 (≥1025 px): hero 620–640 px (630 na 1440), większy tekst,
      kolumna do ~40% szerokości. Przycinamy górę (włosy), nigdy dołu (naszyjnik).
      Od ~1700 px wysokość rośnie do 800 px — inaczej przy 1920 ucięłoby oczy. */
@media (min-width: 1025px) {
  .home .wd-slider.aout-hero { margin-bottom: 56px; }
  .home .wd-slider.aout-hero .wd-slide {
    aspect-ratio: auto;
    height: 630px !important;
    min-height: 620px !important;
    max-height: 640px !important;
  }
  .home .wd-slider.aout-hero .wd-slide-bg {
    background-position: center bottom;
  }
}
@media (min-width: 1700px) {
  /* 1920×600 ucięłoby oczy; 740 px zostawia czoło i cały naszyjnik */
  .home .wd-slider.aout-hero .wd-slide {
    height: 800px !important;
    min-height: 760px !important;
    max-height: 800px !important;
  }
}
.home .wd-slider.aout-hero .wd-slide-bg {
  background-color: #c9a08a;
  background-image: url("/wp-content/uploads/hero-desktop.webp");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
/* ciepła mgiełka tylko z lewej – wyrównuje cienie liści pod tekstem */
.home .wd-slider.aout-hero .wd-bg-overlay {
  background: linear-gradient(90deg, rgba(245,228,212,.40) 0%, rgba(245,228,212,.22) 26%, rgba(245,228,212,0) 46%) !important;
  opacity: 1 !important;
}
.home .wd-slider.aout-hero .wd-slide-container {
  justify-content: center;
  align-items: flex-start;
  --wd-justify-content: center;
  --wd-align-items: flex-start;
}
.home .wd-slider.aout-hero .aout-hero-copy,
.home .wd-slider.aout-hero .wd-slide-container > .wp-block-wd-container {
  --wd-width: 460px;
  width: min(460px, 100%);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left;
  row-gap: 18px;
}
.home .wd-slider.aout-hero .aout-hero-title,
.home .wd-slider.aout-hero .wd-slide h1 {
  margin: 0 !important;
  color: var(--aout-ink, #2b2226) !important;
  font-family: var(--wd-title-font, "Marcellus SC", Arial, Helvetica, sans-serif);
  font-weight: 400;
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.2;
  letter-spacing: .01em;
  text-wrap: balance;
}
.home .wd-slider.aout-hero .aout-hero-lead {
  margin: 0 !important;
  max-width: 26em;
  color: var(--aout-ink, #2b2226) !important;
  font-family: var(--wd-text-font, Lora, Arial, Helvetica, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: balance;
}
/* Przycisk: cienka ramka, bez strzałki; szerokość do treści */
.home .wd-slider.aout-hero .aout-hero-btn,
.home .wd-slider.aout-hero .wd-slide a.btn,
.home .wd-slider.aout-hero .wd-slide a.wp-block-wd-button {
  --wd-width: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 28px;
  box-sizing: border-box;
  background: transparent !important;
  color: var(--aout-bur, #8b1538) !important;
  border: 1px solid var(--aout-bur, #8b1538) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--wd-text-font, Lora, Arial, Helvetica, sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: none !important;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.home .wd-slider.aout-hero .aout-hero-btn:hover,
.home .wd-slider.aout-hero .aout-hero-btn:focus-visible,
.home .wd-slider.aout-hero .wd-slide a.btn:hover {
  background: var(--aout-bur, #8b1538) !important;
  color: #fff !important;
}

/* Typografia v3 tylko na komputerze — musi być PO regułach bazowych, inaczej je nadpiszą.
   Telefon A i tablet zostają przy swoich wartościach z mediów ≤1024 / ≤600. */
@media (min-width: 1025px) {
  .home .wd-slider.aout-hero .wd-bg-overlay {
    background: linear-gradient(90deg, rgba(245,228,212,.42) 0%, rgba(245,228,212,.24) 32%, rgba(245,228,212,0) 52%) !important;
  }
  .home .wd-slider.aout-hero .aout-hero-copy,
  .home .wd-slider.aout-hero .wd-slide-container > .wp-block-wd-container {
    --wd-width: 580px;
    width: min(40vw, 580px) !important;
    max-width: min(40vw, 580px) !important;
    row-gap: 24px;
  }
  .home .wd-slider.aout-hero .aout-hero-title,
  .home .wd-slider.aout-hero .wd-slide h1 {
    font-size: clamp(56px, 4.3vw, 64px) !important;
    line-height: 1.15 !important;
  }
  .home .wd-slider.aout-hero .aout-hero-lead {
    font-size: 18px !important;
    line-height: 1.55 !important;
    max-width: 28em;
  }
  .home .wd-slider.aout-hero .aout-hero-btn,
  .home .wd-slider.aout-hero .wd-slide a.btn,
  .home .wd-slider.aout-hero .wd-slide a.wp-block-wd-button {
    min-height: 48px !important;
    padding: 12px 36px !important;
    font-size: 15px !important;
    margin-top: 10px;
  }
}

/* 3. Tablet i mały laptop (≤1024 px): zdjęcie 2:1 w całości, tekst POD nim na kremie
      (tekst na zdjęciu zasłaniałby tu twarz). */
@media (max-width: 1024px) {
  .home .wd-slider.aout-hero { margin-bottom: 50px; }
  .home .wd-slider.aout-hero .wd-slide {
    display: flex; flex-direction: column;
    aspect-ratio: auto; min-height: 0 !important; max-height: none; height: auto !important;
    background: var(--aout-cream, #faf6f1);
  }
  .home .wd-slider.aout-hero .wd-bg-overlay { display: none !important; }
  .home .wd-slider.aout-hero .wd-slide-bg {
    position: relative !important; inset: auto !important; order: 1;
    width: 100%; aspect-ratio: 2 / 1; height: auto; min-height: 0;
    background-position: center bottom;
  }
  .home .wd-slider.aout-hero .wd-slide-container {
    position: relative !important; inset: auto !important; order: 2;
    width: 100%; height: auto !important; min-height: 0 !important;
    display: block; padding: 28px 24px 36px !important;
    background: var(--aout-cream, #faf6f1);
  }
  .home .wd-slider.aout-hero .aout-hero-copy,
  .home .wd-slider.aout-hero .wd-slide-container > .wp-block-wd-container {
    --wd-width: 100%; width: 100%; max-width: 40em; margin: 0 auto;
    align-items: center !important; text-align: center; row-gap: 14px;
  }
  .home .wd-slider.aout-hero .aout-hero-title,
  .home .wd-slider.aout-hero .wd-slide h1 { font-size: 34px; }
  .home .wd-slider.aout-hero .aout-hero-lead { max-width: 32em; font-size: 16px; }
  .home .wd-slider.aout-hero .aout-hero-btn,
  .home .wd-slider.aout-hero .wd-slide a.btn { align-self: center !important; }
}

/* 4. TELEFON — wariant A (domyślny): pionowe zdjęcie Michała (1086×1448 + dół #340916),
      twarz i kolczyk u góry, zawieszka w środku, tekst biały na bordowej bluzce. */
@media (max-width: 600.98px) {
  .home .wd-slider.aout-hero { margin-bottom: 40px; }
  .home .wd-slider.aout-hero .wd-slide { display: grid !important; background: #340916; }
  .home .wd-slider.aout-hero .wd-slide > * { grid-area: 1 / 1; }
  .home .wd-slider.aout-hero .wd-slide-bg {
    aspect-ratio: 1086 / 1648; width: 100%;
    background-image: url("/wp-content/plugins/aout-hero-v4/img.php?f=hero-mobile-v403.webp") !important;
    background-size: cover; background-position: center top;
  }
  .home .wd-slider.aout-hero .wd-slide-container {
    position: relative !important; align-self: end; z-index: 2; margin: 0;
    height: auto !important; min-height: 0 !important;
    padding: 0 20px 26px !important; background: transparent;
  }
  .home .wd-slider.aout-hero .aout-hero-copy,
  .home .wd-slider.aout-hero .wd-slide-container > .wp-block-wd-container {
    align-items: stretch !important; text-align: left; max-width: none; margin: 0; row-gap: 10px;
  }
  .home .wd-slider.aout-hero .aout-hero-title,
  .home .wd-slider.aout-hero .wd-slide h1 { color: #fff !important; font-size: 28px; line-height: 1.2; }
  .home .wd-slider.aout-hero .aout-hero-lead { color: rgba(255,255,255,.9) !important; font-size: 14.5px; line-height: 1.5; max-width: none; }
  .home .wd-slider.aout-hero .aout-hero-btn,
  .home .wd-slider.aout-hero .wd-slide a.btn {
    align-self: stretch !important; width: 100% !important; margin-top: 6px;
    color: #fff !important; border-color: rgba(255,255,255,.85) !important;
  }
  .home .wd-slider.aout-hero .aout-hero-btn:hover,
  .home .wd-slider.aout-hero .wd-slide a.btn:hover { background: #fff !important; color: var(--aout-bur, #8b1538) !important; }

  /* 5. TELEFON — wariant B (klasa aout-hero--b): zdjęcie 1014×887 w pełnej proporcji,
        tekst wyśrodkowany pod spodem na kremie. */
  .home .wd-slider.aout-hero--b .wd-slide { display: flex !important; background: var(--aout-cream, #faf6f1); }
  .home .wd-slider.aout-hero--b .wd-slide > * { grid-area: auto; }
  .home .wd-slider.aout-hero--b .wd-slide-bg {
    aspect-ratio: 1014 / 887;
    background-image: url("/wp-content/uploads/hero-mobile-b.jpg") !important;
    background-position: center;
  }
  .home .wd-slider.aout-hero--b .wd-slide-container {
    position: relative !important; order: 2; left: auto; right: auto; bottom: auto; padding: 26px 20px 32px !important; background: var(--aout-cream, #faf6f1);
  }
  .home .wd-slider.aout-hero--b .aout-hero-copy,
  .home .wd-slider.aout-hero--b .wd-slide-container > .wp-block-wd-container { align-items: center !important; text-align: center; }
  .home .wd-slider.aout-hero--b .aout-hero-title,
  .home .wd-slider.aout-hero--b .wd-slide h1 { color: var(--aout-ink, #2b2226) !important; font-size: 30px; }
  .home .wd-slider.aout-hero--b .aout-hero-lead { color: var(--aout-ink, #2b2226) !important; font-size: 15px; }
  .home .wd-slider.aout-hero--b .aout-hero-btn,
  .home .wd-slider.aout-hero--b .wd-slide a.btn {
    align-self: center !important; width: auto !important; padding: 10px 32px;
    color: var(--aout-bur, #8b1538) !important; border-color: var(--aout-bur, #8b1538) !important;
  }
  .home .wd-slider.aout-hero--b .aout-hero-btn:hover { background: var(--aout-bur, #8b1538) !important; color: #fff !important; }
}

/* 4.0.1 — telefon: wymuś szerokość 100% (WoodMart zostawiał --wd-width: 496px,
   przez co kadr puchł do 536×873 i ucinał tekst). Obraz przez img.php (bez
   zmniejszania przez CDN). 4.0.3: proporcja 1086/1648 (pełna szerokość zdjęcia + dół pod tekst). */
@media (max-width: 600.98px) {
  .home .wd-slider.aout-hero:not(.aout-hero--b) .wd-slide-bg,
  .home .wd-slider.aout-hero:not(.aout-hero--b) .wd-slide-container,
  .home .wd-slider.aout-hero .wd-slide-container > *,
  .home .wd-slider.aout-hero .wd-custom-width,
  .home .wd-slider.aout-hero .aout-hero-title,
  .home .wd-slider.aout-hero .aout-hero-lead,
  .home .wd-slider.aout-hero .aout-hero-btn,
  .home .wd-slider.aout-hero .wd-slide a.btn,
  .home .wd-slider.aout-hero .wd-slide a.wp-block-wd-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    --wd-width: 100% !important;
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
  }
  .home .wd-slider.aout-hero .wd-slide {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .home .wd-slider.aout-hero .wd-slide-bg {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1086 / 1648;
    background-image: url("/wp-content/plugins/aout-hero-v4/img.php?f=hero-mobile-v403.webp") !important;
    background-size: cover !important;
    background-position: center top !important;
  }
  .home .wd-slider.aout-hero .wd-carousel-inner,
  .home .wd-slider.aout-hero .wd-carousel,
  .home .wd-slider.aout-hero .wd-carousel-wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  /* 4.0.3 — lekki cień tylko na dole (czytelność białego tekstu na bluzce), twarz bez zasłony */
  .home .wd-slider.aout-hero:not(.aout-hero--b) .wd-bg-overlay {
    display: block !important;
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(52,9,22,0) 0%, rgba(52,9,22,0) 55%, rgba(52,9,22,.35) 78%, rgba(52,9,22,.7) 100%) !important;
  }
}
/* AOÛT HERO END */
