/* ============================================================
   SARACEN HERO v4 — self-contained hero sekce
   Font: Montserrat (Regular 400, SemiBold 600, Bold 700, ExtraBold 800)
   Barvy: cervena #C21D2A | modra #061B41 | gradient #22488B → #061B41
   ============================================================ */

/* ---------- IMPORT FONTU ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---------- 0) Vyska fixniho headeru (meri JS) ---------- */
:root {
  --saracen-header-h: 130px;
}

/* Header styly byly prestehovany do saracen-header.css.
   Tady ponechano jen prazdne misto — vlozit prosim do Shoptetu
   `<link rel="stylesheet" href=".../saracen-header.css">`. */

/* ---------- 1) Hero sekce ---------- */
.saracen-hero-section {
  background: linear-gradient(135deg, #22488B 0%, #061B41 100%);
  padding: 0;
  margin-top: var(--saracen-header-h);
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
  z-index: 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.saracen-hero-section,
.saracen-hero-section * {
  font-family: 'Montserrat', Arial, sans-serif;
  box-sizing: border-box;
}

/* dekorativni "S" obrys v pozadi (brand manual) */
.saracen-hero-section::before {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 750px;
  height: 750px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path d='M60 20 Q 130 60, 100 100 Q 60 130, 130 180' fill='none' stroke='%234A7AC8' stroke-width='0.6'/><path d='M75 25 Q 145 65, 115 105 Q 75 135, 145 185' fill='none' stroke='%234A7AC8' stroke-width='0.6'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.saracen-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

/* ---------- 2) Split: video vlevo + text vpravo ---------- */
.saracen-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 0;
  min-height: 580px;
  border-radius: 0;
  overflow: hidden;
  background: #061B41;
}

/* ---------- LEVA: vertikalni video ---------- */
.saracen-split__video-wrap {
  position: relative;
  background: #04132E;
  overflow: hidden;
  /* CSS containment — izoluje paint a layout od zbytku stranky.
     Browser vi, ze co se deje uvnitr wrap neovlivni okoli a muze
     to vykreslovat na separatni compositor vrstve, plynuleji. */
  contain: layout style paint;
  isolation: isolate;
  /* Vytvori vlastni GPU compositor vrstvu pro cely wrap (nejen video) */
  transform: translateZ(0);
}
.saracen-split__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* GPU akcelerace — translate3d je o trochu spolehlivejsi ve vetsine prohlizecu
     pro vyvolani composite vrstvy nez translateZ(0). */
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  contain: paint;
  /* Hint pro browser ze video se nebude resizovat — usetri layout work */
  image-rendering: auto;
}

/* fallback gradient pokud je video skryto (mobil, slabe pripojeni, reduced-motion) */
.saracen-split__video-wrap--no-video {
  background: linear-gradient(180deg, #061B41 0%, #04132E 100%);
}
.saracen-split__video-wrap--no-video .saracen-split__video {
  display: none;
}
/* fallback: kdyby video selhalo, zobrazit aspon brandovy gradient */
.saracen-split__video-wrap--failed {
  background: linear-gradient(180deg, #061B41 0%, #04132E 100%);
}

/* ---------- PRAVA: textovy obsah s pozadim ---------- */
.saracen-split__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  color: #ffffff;
  z-index: 2;
  overflow: hidden;
  background-color: #061B41;
}

/* zelenina jako background obrazek za textem */
.saracen-split__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.mujsaracen.cz/user/documents/upload/i/saracen-zelenina.png');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  opacity: 0.55;
  z-index: 0;
}

/* tmavy gradient overlay zleva — at text zustane citelny */
.saracen-split__content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 27, 65, 0.92) 0%,
    rgba(6, 27, 65, 0.65) 45%,
    rgba(6, 27, 65, 0.35) 75%,
    rgba(6, 27, 65, 0.25) 100%
  );
  z-index: 1;
}

.saracen-split__content > * {
  position: relative;
  z-index: 2;
}

/* Logo Saracen — vlevo nahore v textovem panelu */
.saracen-hero-section .saracen-split__logo {
  display: block;
  width: auto;
  max-width: 300px;
  height: auto;
  margin: 0 0 32px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* Eyebrow nad titulkem — kratky red caps */
.saracen-hero-section .saracen-split__eyebrow {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #C21D2A;
  margin: 0 0 24px;
}

/* Hlavni titulek */
.saracen-split__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  text-transform: none;
}
.saracen-split__title sup {
  font-size: 0.45em;
  vertical-align: super;
  top: -0.4em;
  position: relative;
  font-weight: 700;
}
.saracen-split__title-divider {
  width: 56px;
  height: 3px;
  background: #C21D2A;
  margin: 16px 0 22px;
  border: 0;
}

/* Italic serif tagline pod dividerem */
.saracen-hero-section .saracen-split__tagline {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #ffffff;
  margin: 0 0 40px;
  max-width: 620px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Seznam benefitu — elegantni cislovany s thin red dividers */
.saracen-split__features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.saracen-split__features li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}
.saracen-split__features li::before {
  display: none;
}
.saracen-hero-section .saracen-split__feature-num {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  color: #C21D2A;
  letter-spacing: 1.5px;
  min-width: 32px;
  line-height: 1;
}
.saracen-hero-section .saracen-split__feature-name {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: normal;
  font-weight: 500;
  font-size: 21px;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* CTA tlacitko — dva uriznute kousky s diagonalni mezerou.
   Hlavni cervena cast = ::before, akcentni kousek vpravo = ::after.
   "isolation: isolate" + "z-index: -1" na pseudech => tvary za textem
   ale uvnitr stacking contextu tlacitka. */
.saracen-split__cta {
  position: relative;
  isolation: isolate;
  display: inline-block;
  align-self: flex-start;
  padding: 18px 56px 18px 36px;
  margin-right: 28px;   /* misto pro ::after kousek mimo padding-box */
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter 0.2s ease;
  /* drop-shadow respektuje clip-path tvary (na rozdil od box-shadow) */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* HLAVNI cast — trapezoid s diagonalne useknutym pravym okrajem */
.saracen-split__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #C21D2A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  z-index: -1;
}

/* AKCENTNI kousek vpravo — paralelogram se stejnym sklonem.
   Geometrie: gap_at_top = right_offset + slant - width = 28 + 22 - 42 = 8px */
.saracen-split__cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -28px;
  width: 42px;
  background: #C21D2A;
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  z-index: -1;
}

.saracen-split__cta:hover,
.saracen-split__cta:focus {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)) brightness(1.1);
  color: #ffffff;
  text-decoration: none;
}

/* ---------- 3) RESPONZIVITA ---------- */
@media (max-width: 1199px) {
  .saracen-split__title { font-size: 38px; }
  .saracen-split__content { padding: 40px 40px; }
  .saracen-hero-section .saracen-split__logo { max-width: 240px; margin-bottom: 26px; }
}

@media (max-width: 768px) {
  .saracen-hero-section { padding: 0; }
  .saracen-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .saracen-split__video-wrap {
    aspect-ratio: 16 / 12;
    height: auto;
  }
  .saracen-split__content {
    padding: 32px 24px;
  }
  .saracen-hero-section .saracen-split__logo { max-width: 200px; margin-bottom: 20px; }
  .saracen-split__title { font-size: 30px; }
  .saracen-hero-section .saracen-split__tagline { font-size: 24px; line-height: 1.25; }
  .saracen-hero-section .saracen-split__feature-num { font-size: 18px; min-width: 26px; }
  .saracen-hero-section .saracen-split__feature-name { font-size: 18px; }
  .saracen-split__features li { padding: 12px 0; gap: 14px; }
}

@media (max-width: 480px) {
  .saracen-split__title { font-size: 26px; }
  .saracen-hero-section .saracen-split__tagline { font-size: 22px; }
  .saracen-hero-section .saracen-split__feature-name { font-size: 16px; }
  .saracen-hero-section::before {
    width: 340px;
    height: 340px;
    right: -120px;
  }
}
