/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/*
 * EDU-MASTERS — Webinar Child Theme
 * Wersja: 2.1.0
 * Dołączone do hello-elementor jako child theme style.
 */

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --em-navy-900: #121b32;
  --em-navy-800: #1b2c4a;
  --em-navy-700: #1f3257;
  --em-ink-900:  #15192b;
  --em-ink-600:  #5c6478;
  --em-ink-400:  #8d93a6;
  --em-surface:      #ffffff;
  --em-surface-tint: #f6f8fc;
  --em-surface-faq:  #eef1fb;
  --em-line:     #e6e9f2;

  --em-green-500: #3fae8c;
  --em-blue-500:  #2f86eb;
  --em-pink-500:  #e83187;
  --em-teal-400:  #36d7c4;

  --em-grad-brand: linear-gradient(120deg, #2f86eb 0%, #e83187 100%);

  --em-blob-blue:   #aed7f7;
  --em-blob-purple: #d9c4f0;
  --em-blob-pink:   #f7c8e2;
  --em-blob-peach:  #fbe7cc;

  --em-r-lg:   28px;
  --em-r-md:   18px;
  --em-r-pill: 999px;

  --em-font-display: 'Poppins', sans-serif;
  --em-font-body:    'Inter', sans-serif;
  --em-ease: cubic-bezier(.22,.61,.36,1);

  --em-header-offset: 72px;
}

/* =========================================================
   SMOOTH SCROLL + OFFSET DLA KOTWIC
   ========================================================= */
html, body {
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
/* Każda sekcja z id przesuwa się o wysokość sticky headera */
#top, #about, #program, #korzysci, #prowadzacy, #faq, #signup {
  scroll-margin-top: var(--em-header-offset);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================================
   MAX-WIDTH
   treść: 1600px | sekcje fullwidth (tła, hero): 100% max 1920px
   ========================================================= */
.em-wrap {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
/* Sekcje z tłem/obrazkami rozciągają się do 1920px */
.em-hero-wrap,
.em-program-section,
.em-korzysci-section,
.em-prowadzacy-section,
.em-signup-section-outer {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* =========================================================
   TOPBAR — wstęga z falą CSS, gradient ciemny, tekst biały
   ========================================================= */
.em-topbar {
  position: relative;
  z-index: 501;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0;
  background: linear-gradient(90deg, #1e2c50 0%, #3a1f54 100%);
}

/* Wave dividers */
.em-wave { display: block; width: 100%; line-height: 0; overflow: hidden; }
.em-wave svg { display: block; width: 100%; }
.em-wave--topbar { margin-top: -1px; }
.em-wave--topbar svg { height: 40px; }
.em-wave--hero { margin-top: -1px; }
.em-wave--hero svg { height: 70px; }

.em-topbar__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 32px;
  color: #fff;
  text-decoration: none;
  font-family: var(--em-font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.em-topbar__inner svg { flex-shrink: 0; stroke: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.em-header {
  position: sticky !important;
  top: 0;
  z-index: 500;
  background: #fff !important;
  transition: box-shadow .3s var(--em-ease);
}
.em-header.em-scrolled {
  box-shadow: 0 4px 20px rgba(20,30,60,.09);
}
.em-header .em-header__inner {
  display: flex !important;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.em-header .em-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.em-header .em-header__logo-img {
  height: 40px;
  width: auto;
}
.em-header .em-header__brand-name {
  font-family: var(--em-font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--em-ink-900);
}
.em-header .em-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.em-header .em-header__menu {
  display: flex !important;
  align-items: center;
  gap: 32px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.em-header .em-header__menu li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.em-header .em-header__menu li a {
  font-family: var(--em-font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--em-ink-900);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.em-header .em-header__menu li a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--em-grad-brand);
  transition: width .25s var(--em-ease);
}
.em-header .em-header__menu li a:hover::after { width: 100%; }
.em-header .em-header__ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.em-header .em-header__ctas-mobile { display: none !important; }

.em-btn-dark {
  background: var(--em-ink-900);
  color: #fff;
}
.em-btn-dark:hover {
  background: var(--em-navy-700);
}

/* Hamburger */
.em-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.em-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--em-ink-900);
  border-radius: 2px;
  transition: transform .3s var(--em-ease), opacity .3s var(--em-ease);
}
.em-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.em-hamburger.is-open span:nth-child(2) { opacity: 0; }
.em-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.em-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--em-font-display); font-weight: 700; font-size: 14px;
  padding: 12px 26px; border-radius: var(--em-r-pill);
  border: none; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .25s var(--em-ease), box-shadow .25s var(--em-ease), filter .25s var(--em-ease);
}
.em-btn:hover  { transform: translateY(-2px); }
.em-btn:active { transform: translateY(0); }
.em-btn-sm     { padding: 9px 20px; font-size: 13px; }
.em-btn-gradient {
  background: var(--em-grad-brand); color: #fff;
  box-shadow: 0 8px 20px rgba(232,49,135,.25);
}
.em-btn-gradient:hover { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(232,49,135,.35); }
.em-btn-green {
  background: linear-gradient(135deg,#52c4a0,#34987a); color: #fff;
  box-shadow: 0 10px 26px rgba(63,174,140,.35); font-size: 15px; letter-spacing:.04em;
  max-width: fit-content;
}
.em-btn-green:hover { filter: brightness(1.05); }

/* =========================================================
   HERO
   ========================================================= */
.em-hero-wrap { padding: 0; }
.em-hero {
  position: relative;
  background: var(--em-navy-800);
  overflow: hidden;
}
.em-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.em-hero-grid {
  display: grid; grid-template-columns: minmax(0, 750px) 1fr;
  align-items: stretch; min-height: 520px;
}
.em-hero-content {
  max-width: 700px;
  margin-left: auto;
  padding: 72px 48px 72px 64px;
  display: flex; flex-direction: column; gap: 22px; justify-content: center;
}
.em-hero-content h1  { color:#fff; font-family:var(--em-font-display); font-size:clamp(18px,2.8vw,28px); font-weight:700; max-width:560px; margin:0; line-height:1.15; }
.em-lead             { color:#c7cde0; font-size:clamp(13px,1.6vw,18px); max-width:480px; margin:0; }
.em-hero-bullets     { display:flex; flex-direction:column; gap:14px; margin:4px 0 0; padding:0; list-style:none; }
.em-hero-bullets li  { display:flex; gap:12px; color:#dfe3ef; font-size:clamp(14px,1.4vw,18px); line-height:1.55; max-width:480px; }
.em-hero-bullets li::before {
  content:""; flex-shrink:0; margin-top:7px; width:8px; height:8px;
  border-radius:50%; background:var(--em-grad-brand);
}
.em-hero-media         { position:relative; }
.em-hero-media img,
.em-hero-video         { width:100%; height:100%; object-fit:cover; min-height:340px; display:block; }
.em-hero-media::before {
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg,var(--em-navy-800) 0%,rgba(27,44,74,.5) 35%,rgba(27,44,74,0) 70%);
}

/* =========================================================
   SEKCJE — ogólne
   ========================================================= */
.em-section { position:relative; padding:96px 0; }
.em-section-head { text-align:center; max-width:640px; margin:0 auto 48px; }
.em-section-head h2 { font-family:var(--em-font-display); font-size:clamp(24px,3vw,36px); font-weight:700; margin:0; }
.em-section-head p  { margin:10px 0 0; font-size:clamp(13px,1.6vw,18px); color:var(--em-ink-600); }

/* blobs dekoracyjne */
.em-blob { position:absolute; border-radius:50%; filter:blur(44px); z-index:0; pointer-events:none; }
.em-blob-1 { width:360px; height:360px; background:var(--em-blob-blue);   opacity:.55; top:-90px;  left:-90px; }
.em-blob-2 { width:280px; height:280px; background:var(--em-blob-pink);   opacity:.5;  top:40px;   left:160px; }
.em-blob-3 { width:320px; height:320px; background:var(--em-blob-purple); opacity:.5;  top:-40px;  right:-60px; }
.em-blob-4 { width:240px; height:240px; background:var(--em-blob-peach);  opacity:.55; bottom:-60px; right:120px; }

/* reveal on scroll */
.em-reveal { opacity:0; transform:translateY(22px); transition:opacity .7s var(--em-ease),transform .7s var(--em-ease); }
.em-reveal.is-visible { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion:reduce) { .em-reveal { opacity:1; transform:none; transition:none; } }

/* wysiwyg output */
.em-wysiwyg p      { margin-bottom:.8em; color:var(--em-ink-600); font-size:clamp(13px,1.6vw,18px); line-height:1.7; }
.em-wysiwyg ul     { margin-bottom:.8em; padding-left:20px; list-style:disc; color:var(--em-surface-faq); font-size:clamp(13px,1.6vw,18px); }
.em-wysiwyg li     { margin-bottom:.4em; }
.em-wysiwyg strong { color:var(--em-ink-900); }
.em-wysiwyg a      { color:var(--em-blue-500); }

/* =========================================================
   O WEBINARZE
   ========================================================= */
.em-about-section { overflow:hidden; }
.em-about-grid {
  display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;
  position:relative; z-index:1;
}
.em-about-heading { font-family:var(--em-font-display); font-size:clamp(24px,3vw,36px); font-weight:700; margin:0 0 14px; }
.em-about-sub     { font-family:var(--em-font-display); font-weight:600; font-size:clamp(16px,1.8vw,20px); color:var(--em-navy-700); margin:0 0 14px; line-height:1.4; }
.em-about-intro   { max-width:520px; }
.em-mockup-frame  {
  background:linear-gradient(160deg,#1f3357,#13203b); border-radius:22px; padding:14px;
  box-shadow:0 30px 60px -20px rgba(20,30,60,.35);
  transform:perspective(900px) rotateY(-4deg);
}
.em-mockup-frame img { border-radius:12px; width:100%; display:block; }

/* =========================================================
   PROGRAM (grid 2×2)
   ========================================================= */
.em-program-section { background:var(--em-surface-tint); overflow:hidden; }
.em-prog-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:20px; position:relative; z-index:1;
}
.em-prog-box {
  border-radius:18px; padding:32px 28px;
  transition:transform .3s var(--em-ease), box-shadow .3s var(--em-ease);
}
.em-prog-box:hover { transform:translateY(-4px); box-shadow:0 16px 36px -12px rgba(15,25,50,.25); }
.em-prog-box--1 { background:#1f3257; }
.em-prog-box--2 { background:#2b4570; }
.em-prog-box--3 { background:#1b2c4a; }
.em-prog-box--4 { background:#253d63; }
.em-prog-box__title {
  font-family:var(--em-font-display); font-weight:700;
  font-size:clamp(16px,1.6vw,20px); color:#fff;
  margin:0 0 12px; line-height:1.3;
}
.em-prog-box__text p { color:#c4cadd; font-size:clamp(13px,1.4vw,16px); }

/* chev nadal potrzebny dla FAQ */
.em-chev { flex-shrink:0; width:20px; height:20px; transition:transform .35s var(--em-ease); }
.em-faq-item.is-open .em-chev { transform:rotate(180deg); }

/* =========================================================
   LISTA KORZYŚCI
   ========================================================= */
.em-korzysci-section { overflow:hidden; }
.em-korzysci-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:20px; position:relative; z-index:1;
}
.em-korzysci-card {
  background:#fff; border:1px solid var(--em-line); border-radius:var(--em-r-md);
  padding:28px 24px; display:flex; flex-direction:column; align-items:center;
  gap:14px; text-align:center;
  transition:transform .3s var(--em-ease),box-shadow .3s var(--em-ease),border-color .3s var(--em-ease);
}
.em-korzysci-card:hover { transform:translateY(-4px); box-shadow:0 18px 40px -16px rgba(20,30,60,.18); border-color:transparent; }
.em-korzysci-icon { width:56px; height:56px; }
.em-korzysci-icon img { width:100%; height:100%; object-fit:contain; }
.em-korzysci-card p { font-size:clamp(13px,1.4vw,18px); color:var(--em-ink-600); margin:0; }
.em-korzysci-podtytul {
  font-family:var(--em-font-display); font-weight:600;
  font-size:clamp(16px,1.8vw,20px); color:var(--em-navy-700);
  text-align:center; max-width:640px; margin:0 auto 32px; line-height:1.4;
}
.em-korzysci-podsumowanie {
  font-size:clamp(13px,1.6vw,18px); color:var(--em-ink-600);
  text-align:center; max-width:640px; margin:36px auto 0; line-height:1.7;
}

/* =========================================================
   O PROWADZĄCYCH
   ========================================================= */
.em-prowadzacy-section { background:var(--em-surface-tint); }
.em-prowadzacy-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.em-prowadzacy-grid h2    { font-family:var(--em-font-display); font-size:clamp(24px,3vw,36px); font-weight:700; margin:0 0 12px; max-width: 475px;}
.em-prowadzacy-sub        { font-family:var(--em-font-display); font-size:clamp(16px,1.8vw,20px); font-weight:600; color:var(--em-ink-600); margin:0 0 20px; }
.em-prowadzacy-photo-frame { border-radius:var(--em-r-lg); overflow:hidden; box-shadow:0 30px 60px -20px rgba(20,30,60,.22); }
.em-prowadzacy-photo-frame img { width:100%; display:block; }

/* =========================================================
   FAQ
   ========================================================= */
.em-faq-section { background:var(--em-surface); }
.em-faq-list { max-width:1200px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.em-faq-item { border:1px solid var(--em-line); border-radius:14px; overflow:hidden; transition:border-color .3s var(--em-ease),box-shadow .3s var(--em-ease); }
.em-faq-item.is-open { border-color:transparent; box-shadow:0 10px 28px -14px rgba(20,30,60,.18); }
.em-faq-trigger {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:#fff; border:none; text-align:left; padding:20px 24px; cursor:pointer;
  font-family:var(--em-font-display); font-weight:600; font-size:clamp(13px,1.4vw,18px); color:var(--em-ink-900);
}
.em-faq-trigger .em-chev { color:var(--em-ink-400); width:18px; height:18px; }
.em-faq-item.is-open .em-faq-trigger .em-chev { color:var(--em-pink-500); }
.em-faq-panel-wrap { display:grid; grid-template-rows:0fr; background:var(--em-surface-faq); transition:grid-template-rows .4s var(--em-ease); }
.em-faq-item.is-open .em-faq-panel-wrap { grid-template-rows:1fr; }
.em-faq-panel { overflow:hidden; min-height:0; padding:0 24px; }
.em-faq-item.is-open .em-faq-panel { padding-bottom:20px; padding-top:4px; }
.em-faq-panel p { font-size:clamp(13px,1.4vw,18px); }

/* =========================================================
   SIGNUP / MAILERLITE
   ========================================================= */
.em-section > .em-signup-section {
  background:var(--em-navy-800); border-radius:var(--em-r-lg);
  max-width:1600px; margin:0 auto; padding:80px 64px;
  text-align:center; position:relative; overflow:hidden;
}
.em-signup-section h2 { color:#fff; font-family:var(--em-font-display); font-size:clamp(24px,2.8vw,36px); margin:0 0 28px; }
.em-mailerlite-wrap { max-width:580px; margin:0 auto; }
.em-mailerlite-wrap iframe { width:100%; border:none; border-radius:12px; }
.em-mailerlite-placeholder {
  background:rgba(255,255,255,.06); border:1.5px dashed rgba(255,255,255,.35);
  border-radius:16px; padding:48px 24px; color:#c7cde0; font-size:14px; line-height:1.7;
}
.em-mailerlite-placeholder strong { color:#fff; display:block; margin-bottom:8px; font-family:var(--em-font-display); }

#signup {
  max-width: 90%;
  margin: 0 auto;
}
/* =========================================================
   BODY LOCK (mobile nav open)
   ========================================================= */
body.em-nav-open { overflow: hidden; }

/* =========================================================
   VIDEO FULLSCREEN
   ========================================================= */
.em-video-section {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.em-video-fullscreen {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: 1920px;
  display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */
.em-site-footer {
  position: relative;
  background: #f0f1f5;
}
.em-wave--footer {
  margin-bottom: -1px;
  line-height: 0;
}
.em-wave--footer svg { display: block; width: 100%; height: 60px; }
.em-footer-brand {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: #fff;
  border-radius: var(--em-r-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(20,30,60,.12);
}
.em-footer-logo { height: 128px; width: auto; display: block; }
.em-footer-brand svg { width: 96px; height: 96px; }
.em-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 90px;
  padding-bottom: 32px;
}
.em-footer-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--em-font-body);
  font-size: 14px;
  color: var(--em-ink-600);
}
.em-footer-contact p { margin: 0; }
.em-footer-company {
  font-family: var(--em-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--em-ink-900);
}
.em-footer-contact a {
  color: var(--em-ink-600);
  text-decoration: none;
  transition: color .2s var(--em-ease);
}
.em-footer-contact a:hover { color: var(--em-ink-900); }
.em-footer-bottom {
  text-align: center;
  padding: 16px 20px 24px;
  border-top: 1px solid #dfe1e9;
  font-family: var(--em-font-body);
  font-size: 13px;
  color: var(--em-ink-400);
}
.em-footer-bottom p { margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1366px) and (min-width: 961px) {
  .em-hero-grid { grid-template-columns: minmax(0, 525px) 1fr; }
  .em-hero-content { max-width: 525px; }
}
@media (max-width: 1200px) {
  .em-wrap { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 960px) {
  .em-hero-grid           { grid-template-columns: 1fr; }
  .em-hero-media          { min-height: 280px; order: -1; }
  .em-hero-content        { max-width: 100%; width: 100%; margin-left: 0; }
  .em-about-grid          { grid-template-columns: 1fr; }
  .em-prowadzacy-grid     { grid-template-columns: 1fr; }
  .em-section             { padding: 72px 0; }
  .em-prog-grid           { grid-template-columns: 1fr; }
  .em-korzysci-grid       { grid-template-columns: repeat(2,1fr); }
  .em-mockup-frame        { max-height: 525px; overflow: hidden; }

  /* Header — hamburger mode */
  .em-hamburger              { display: flex !important; }
  .em-header .em-header__ctas { display: flex !important; margin-left: auto; }
  .em-header .em-header__ctas-mobile { display: none !important; }
  .em-header .em-header__nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20,30,60,.12);
    padding: 20px 24px;
    flex-direction: column;
  }
  .em-header .em-header__nav.is-open { display: flex !important; }
  .em-header .em-header__menu {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
  }
  .em-header .em-header__menu li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--em-line);
  }
  .em-header .em-header__menu li:last-child a { border-bottom: none; }
}
@media (max-width: 640px) {
  :root { --em-header-offset: 64px; }
  .em-wrap                { padding-left: 20px; padding-right: 20px; }
  .em-hero-content        { padding: 48px 20px; max-width: 100%; box-sizing: border-box; }
  .em-hero-content h1,
  .em-lead,
  .em-hero-bullets li     { max-width: 100%; }
  .em-section             { padding: 56px 0; }
  .em-section > .em-signup-section { padding: 48px 24px; }

  .em-korzysci-grid       { grid-template-columns: 1fr; }
  .em-header .em-header__ctas { display: none !important; }
  .em-hamburger { margin-left: auto; }
  .em-header .em-header__ctas-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--em-line);
  }
  .em-header .em-header__ctas-mobile .em-btn { text-align: center; }
  .em-topbar__inner       { font-size: 11px; padding-right: 16px; }
  .em-wave--topbar svg    { height: 28px; }
  .em-hero__wave          { height: 30px; }
  .em-footer-contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .em-wave--footer svg { height: 40px; }
  #signup { margin: 0 auto 56px; }
}