/*
Theme Name: DreamUp
Theme URI: https://www.dreamup.prattwhitney.pl/
Author: DreamUp
Description: Dedykowany motyw one-page dla programu edukacyjnego DreamUp (Pratt & Whitney). Granatowo-biała kolorystyka, sekcje z nawigacją kotwicową, formularz rekrutacyjny Forminator.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dreamup
*/

:root {
  --pink: #d6006e;
  --ink: #1d2130;
  --navy: #0e2240;
  --navy-2: #14315c;
  --navy-3: #1d4380;
  --sky: #4da3ff;
  --sky-light: #dbeaff;
  --gold: #f2a900;
  --white: #ffffff;
  --text: #22293a;
  --muted: #5b6478;
  --bg-alt: #f4f7fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 34, 64, 0.12);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: clip; /* bezpiecznik: nic nie rozpycha strony w poziomie na telefonach */
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Dostępność ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__kicker {
  display: inline-block;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section__lead { max-width: 720px; color: var(--muted); font-size: 1.06rem; }
.section__icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; }
.recruit .section__icon { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)); }

/* ===== Header / nawigacja (biały pasek jak w oryginale) ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(14, 34, 64, 0.1);
}
.site-header .container { max-width: 1360px; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand__logo { height: 56px; width: auto; }
.brand__name { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: 0.02em; }
.brand__name span { color: var(--pink); }
.brand__tagline {
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 1px solid #d7dbe4;
  padding-left: 14px;
  white-space: nowrap;
}

.site-header__right { display: flex; align-items: center; gap: 6px; }

.main-nav ul { display: flex; gap: 2px; list-style: none; }
.main-nav a {
  display: block;
  padding: 8px 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--pink); }

.site-header__social {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid #d7dbe4;
  padding-left: 18px;
  margin-left: 10px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.social-icon svg { width: 15px; height: 15px; }
.social-icon:hover { color: var(--pink); border-color: var(--pink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== Hero (film w tle na całą szerokość, przyciemniony) ===== */
.hero {
  min-height: 92vh;
  min-height: 92svh; /* iOS Safari: wysokość bez dynamicznego paska przeglądarki */
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--white);
  padding: 150px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .container { max-width: 1360px; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.55) 0%, rgba(8, 12, 24, 0.3) 45%, rgba(8, 12, 24, 0.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero h1 {
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 5.6rem);
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero h1 em { color: var(--white); font-style: normal; }
.hero__tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
}
.hero p {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--white);
  max-width: 720px;
  margin-bottom: 32px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__actions:last-child { margin-bottom: 0; }

/* ===== Film promocyjny ===== */
.video-frame {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.video-frame video { width: 100%; display: block; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: 0 8px 24px rgba(242, 169, 0, 0.35); }
.btn--primary:hover { background: #ffbe1f; }
.btn--ghost { border: 2px solid rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.hero__partners { margin-left: auto; min-width: 0; max-width: 100%; }
.hero__partners img { max-width: min(420px, 100%); max-height: 72px; object-fit: contain; opacity: 0.95; }

/* ===== Karty / siatki ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: var(--white);
  border: 1px solid #e3e9f4;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sky-light);
  color: var(--navy-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card__icon img { width: 44px; height: 44px; object-fit: contain; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Lista modułów programu */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; counter-reset: module; }
.module {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid #e3e9f4;
  border-radius: var(--radius);
  padding: 22px;
}
.module__num {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.module p { color: var(--muted); font-size: 0.95rem; }

/* Dla kogo — wymagania */
.checklist { list-style: none; margin-top: 28px; display: grid; gap: 14px; max-width: 680px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.04rem; }
.checklist li::before {
  content: "✔";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--navy-3);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Dla kogo — zdjęcie po prawej */
.who-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.who-photo img { width: 100%; max-width: 460px; margin: 0 auto; }

/* Dla rodziców */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__panel {
  background: linear-gradient(160deg, var(--navy), var(--navy-3));
  border-radius: var(--radius);
  color: var(--white);
  padding: 36px;
}
.split__panel h3 { color: var(--white); }
.split__panel p { color: rgba(255, 255, 255, 0.85); }
.split__panel ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.split__panel li { padding-left: 26px; position: relative; color: rgba(255, 255, 255, 0.9); }
.split__panel li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

/* ===== Rekrutacja / formularz ===== */
.recruit { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.recruit h2, .recruit h3 { color: var(--white); }
.recruit .section__lead { color: rgba(255, 255, 255, 0.82); }
.recruit__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 20px; }
.recruit__steps { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.recruit__steps li { display: flex; gap: 16px; }
.recruit__steps .step-num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recruit__steps p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.recruit__deadline {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 0.98rem;
}

.recruit__photo {
  margin-top: 30px;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.form-card h3 { margin-bottom: 18px; color: var(--navy); }
.form-card__logo { height: 110px; object-fit: contain; margin-bottom: 8px; }

/* Stylizacja pól Forminatora pod motyw */
.form-card .forminator-label { font-weight: 700; color: var(--navy); }
.form-card .forminator-input,
.form-card .forminator-textarea,
.form-card .forminator-select {
  border: 1.5px solid #d4ddec !important;
  border-radius: 10px !important;
}
.form-card .forminator-button-submit {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 12px 34px !important;
}

/* ===== Galeria ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery img, .gallery svg { width: 100%; display: block; transition: transform 0.3s; }
.gallery figure:hover img, .gallery figure:hover svg { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(14, 34, 64, 0.85));
  color: var(--white);
  font-size: 0.85rem;
}

/* ===== Organizatorzy ===== */
.organizers { padding: 56px 0; border-top: 1px solid #e3e9f4; }
.organizers__title {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}
.organizers__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.organizers__row img { max-height: 110px; max-width: 300px; object-fit: contain; }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }

/* ===== Stopka ===== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 56px 0 28px; }
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.site-footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Responsywność ===== */
@media (max-width: 1280px) {
  .brand__tagline { display: none; }
}

@media (max-width: 1100px) {
  .site-header__social { display: none; }
}

@media (max-width: 960px) {
  .split, .recruit__grid, .who-grid { grid-template-columns: 1fr; }
  .cards, .contact-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header__inner { height: 72px; }
  .brand__logo { height: 44px; }
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(14, 34, 64, 0.12);
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
}

@media (max-width: 720px) {
  .hero__partners { margin: 0 auto; width: 100%; display: flex; justify-content: center; }
  .hero__partners img { max-width: calc(100vw - 36px); }
  .cards, .contact-grid, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .hero { padding: 110px 0 40px; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3rem); }
  .hero p { font-size: 1.15rem; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; padding: 13px 22px; }
  .hero__partners img { max-height: 56px; }
  .brand__logo { height: 38px; }
  h2 { font-size: 1.55rem; }
}
