/* ------------------------------------------------------------------
   Konkurs GoWork — "Gamer CV"
   Landing page v2 (desktop 1920 + responsive mobile)
   ------------------------------------------------------------------ */

/* --- Tokens ------------------------------------------------------- */
:root {
  --color-white:      rgb(255, 255, 255);
  --color-cream-1:    rgb(255, 254, 253);
  --color-cream-2:    rgb(236, 226, 222);
  --color-text:       rgb(71, 71, 71);
  --color-text-dark:  rgb(56, 54, 53);
  --color-text-black: rgb(0, 0, 0);
  --color-red:        #EC0000;
  --color-link:       rgb(30, 101, 166);
  --color-circle-1:   rgb(237, 240, 243);
  --color-circle-2:   rgb(192, 205, 221);

  --gradient-cream:   linear-gradient(var(--color-cream-1) 0%, var(--color-cream-2) 100%);
  --gradient-cream-soft: linear-gradient(rgba(255,255,255,0.5) 0%, rgba(236,226,222,0.5) 100%);
  --gradient-circle:  linear-gradient(var(--color-circle-1) 0%, var(--color-circle-2) 100%);

  --shadow-header:    0 4px 4px 0 rgba(0, 0, 0, 0.25);

  --font-display:     "Risque", serif;
  --font-headline:    "Risque", serif;
  --font-body:        "Cherry Swash", Georgia, serif;
  --font-ui:          "Cherry Swash", Georgia, serif;
  --font-cta:         "Cherry Swash", Georgia, serif;

  --container-max:    1800px;
  --gutter:           max(20px, calc((100vw - 1800px) / 2));
  --header-h:         60px;
}

/* --- Base --------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--color-white);
  font-family: var(--font-body);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

strong { font-weight: 700; }
em { font-style: italic; }
.red { color: var(--color-red); }

.page {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Section gutter — content stays within 1200px, backgrounds go full-bleed */
.site-header,
.hero,
.section,
.prizes,
.inline-text,
.site-footer,
.mission-heading,
.mission-row {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --- Header (sticky) --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-white);
  box-shadow: var(--shadow-header);
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo--small img {
  height: 40px;
  width: auto;
}

.logo--large img {
  height: 100px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 48px;
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--color-text);
  margin: 0;
  align-items: center;
}

.main-nav a {
  white-space: nowrap;
  transition: color .15s ease;
}

.main-nav a:hover { color: var(--color-red); }

.main-nav .nav-cta {
  color: var(--color-red);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 28px;
  height: 22px;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
}

/* --- Hero --------------------------------------------------------- */
/* DESKTOP: hero is a 2-col grid (knight | content stack).
   Wrappers .hero-top + .hero-bottom use display:contents so their children
   participate directly in the .hero grid.
   MOBILE: wrappers become normal blocks; .hero-top keeps the cream gradient,
   .hero-bottom drops the gradient + white card chrome. */
.hero {
  background: var(--gradient-cream);
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "knight title"
    "knight subtitle"
    "knight ornament"
    "knight card";
  column-gap: 40px;
  row-gap: 20px;
  align-items: end;
}

.hero-top,
.hero-bottom { display: contents; }

.hero-knight { grid-area: knight; align-self: end; }
.hero-title  { grid-area: title; }
.hero-subtitle { grid-area: subtitle; }
.hero-ornament { grid-area: ornament; }
.hero-card   { grid-area: card; }

.hero-knight {
  width: 540px;
  max-width: 100%;
  aspect-ratio: 638 / 588;
  background: url("../assets/hero-knight.png") center / contain no-repeat;
  justify-self: start;
}

.hero-content {
  padding-bottom: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  line-height: 1;
  margin: 0;
}

.hero-title .accent { color: var(--color-red); }

.hero-subtitle {
  font-family: var(--font-headline);
  font-size: 51px;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  line-height: 1.05;
  margin: 0;
}

.hero-card {
  background: var(--color-white);
  border-radius: 40px;
  padding: 36px 50px;
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 50px;
  color: var(--color-text);
  text-align: justify;
  hyphens: auto;
}

.hero-card p { margin: 0 0 12px; }
.hero-card p:last-child { margin-bottom: 0; }

/* --- Ornament ----------------------------------------------------- */
.ornament { display: flex; justify-content: center; }
.ornament img,
.ornament svg {
  width: 209px;
  height: 24px;
  display: block;
}

.hero-content .ornament,
.hero-ornament { margin: 0 auto; }

.ornament--standalone {
  padding: 40px 0;
}

/* --- Inline text (taglines) -------------------------------------- */
.inline-text {
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

.inline-text p {
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 50px;
  color: var(--color-text-black);
  margin: 0 auto;
}

.inline-text .accent {
  color: var(--color-red);
}

/* --- Section: Stwórz CV / Pora na quest -------------------------- */
.section {
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
}

.section--cream {
  background: var(--gradient-cream);
}

.section--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.create-cv .col-text {
  padding-right: 20px;
}

.quest {
  align-items: end;
  padding-bottom: 0;
}

.quest .col-text {
  padding-left: 0;
  padding-bottom: 60px; /* keep text vertically centered-ish */
  align-self: center;
}

.quest .col-image {
  align-self: end;
}

.archer-img {
  width: 100%;
  max-width: 722px;
  aspect-ratio: 722 / 941;
  background: url("../assets/archer.png") bottom center / contain no-repeat;
  margin: 0;
  display: block;
}

/* Headlines */
.section-heading {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 82px;
  line-height: 1;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 40px;
}

.section-heading .accent {
  color: var(--color-red);
  display: block;
}

/* "Stwórz CV w stylu RPG" — Risque + Sancreek with offset */
.create-cv .section-heading {
  text-align: left;
  margin-bottom: 30px;
}

.create-cv .section-heading .line-1 {
  font-family: var(--font-headline);
  display: block;
  font-size: 82px;
}

.create-cv .section-heading .line-2 {
  font-family: var(--font-display);
  font-size: 64px;
  display: block;
  margin-left: 130px;
  margin-top: -5px;
}

.quest .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-body {
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 50px;
  color: var(--color-text);
  text-align: justify;
  hyphens: auto;
  margin: 0 0 20px;
}

.section-body p { margin: 0 0 1em; }
.section-body p:last-child { margin-bottom: 0; }

/* --- Skill row --------------------------------------------------- */
.skill-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill {
  display: grid;
  grid-template-columns: 35px 140px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 140px;
}

.skill-bullet {
  width: 33px;
  height: 29px;
  display: inline-flex;
  flex-shrink: 0;
}
.skill-bullet img,
.skill-bullet svg { width: 100%; height: 100%; }

.skill-icon {
  width: 140px;
  height: 140px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.skill-label {
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 40px;
  color: var(--color-text);
  text-align: left;
}

/* --- Character card / archer ------------------------------------- */
.character-card {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 778 / 908;
  margin: 0 auto;
}

.character-card .character-img {
  width: 100%;
  height: 100%;
  background: url("../assets/character-card.jpg") center / contain no-repeat;
}

.archer-img-DELETED { display: none; }

/* --- Prizes ------------------------------------------------------- */
.prizes {
  background: var(--gradient-cream);
  padding-top: 50px;
  padding-bottom: 60px;
}

.prizes-heading {
  margin-bottom: 30px;
}

.prizes-intro {
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 1;
  color: var(--color-text);
  margin: 0 0 20px;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.prize-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.prize-image {
  width: 100%;
  max-width: 564px;
  aspect-ratio: 564 / 546;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.prize-image.smartphone { background-image: url("../assets/prize-1-smartphone.png"); }
.prize-image.scooter    { background-image: url("../assets/prize-2-scooter.png");    aspect-ratio: 564 / 564; }
.prize-image.tablet     { background-image: url("../assets/prize-3-tablet.png");     aspect-ratio: 564 / 564; }

.prize-place {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--color-red);
  margin: 12px 0 8px;
}

.prize-desc {
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 32px;
  color: var(--color-text);
  margin: 0;
  max-width: 460px;
}

/* --- Mission / dates + CTA --------------------------------------- */
.mission {
  padding: 30px 0 0;
}

.mission-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 82px;
  line-height: 1;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 40px;
}

/* Mission row: full-bleed background, content centered at 1200px */
.mission-row-wrap {
  background: var(--gradient-cream-soft);
  width: 100%;
  margin: 30px 0;
}

.mission-row {
  background: transparent;
  padding-top: 30px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
}

.mission-block {
  display: grid;
  grid-template-columns: 35px 140px 1fr;
  gap: 18px;
  align-items: center;
}

.mission-block .bullet {
  width: 33px;
  height: 29px;
}
.mission-block .bullet img,
.mission-block .bullet svg { width: 100%; height: 100%; }

.mission-block .icon {
  width: 140px;
  height: 140px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.mission-block.recruitment .icon { background-image: url("../assets/icon-recruitment.png"); }
.mission-block.winners     .icon { background-image: url("../assets/icon-winners.png"); }

.mission-text {
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

.mission-text .label {
  display: block;
  line-height: 50px;
}

.mission-text .date {
  display: block;
  font-size: 25px;
  line-height: 36px;
}

.mission-text .date strong {
  color: var(--color-red);
  font-weight: 700;
}

.mission-text .date.big {
  color: var(--color-red);
  font-weight: 700;
  font-size: 45px;
  line-height: 50px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  min-width: 280px;
  padding: 0 40px;
  border-radius: 100px;
  border: 1px solid var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 25px;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
  white-space: nowrap;
}

.cta-button:hover { filter: brightness(1.08); }
.cta-button:active { transform: translateY(1px); }

/* --- Footer ------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-text);
  padding-top: 50px;
  padding-bottom: 60px;
  background: var(--color-white);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 308px repeat(3, 1fr);
  gap: 60px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-socials {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.social-icon:hover { transform: translateY(-2px); }

.social-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 25px;
  line-height: 50px;
  color: var(--color-link);
  margin: 0 0 6px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  font-family: var(--font-ui);
  font-size: 25px;
  line-height: 50px;
  color: var(--color-link);
}

.footer-col a:hover { text-decoration: underline; }

/* --- Mobile ------------------------------------------------------- */
@media (max-width: 960px) {
  .site-header {
    padding: 0 16px;
    gap: 12px;
  }

  .logo--small img { height: 32px; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    box-shadow: var(--shadow-header);
    line-height: 50px;
    margin: 0;
  }

  .main-nav.is-open { display: flex; }

  .menu-toggle { display: flex; }

  /* HERO MOBILE:
     hero is a plain block (white bg).
     .hero-top = cream gradient: title → subtitle → knight stack.
     .hero-bottom = white bg: ornament + plain paragraphs (no white card chrome). */
  .hero {
    background: var(--color-white);
    padding: 0;
    display: block;
  }

  .hero-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    background: var(--gradient-cream);
    padding: 30px var(--gutter) 0;
    margin: 0 calc(var(--gutter) * -1);
  }

  .hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 24px;
  }

  .hero-knight {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 440 / 546;
    margin: 0 auto;
  }

  .hero-ornament {
    margin: 0 auto;
  }

  .hero-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 18px;
    line-height: 32px;
    text-align: left;
  }

  .hero-title {
    font-family: var(--font-headline);
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.1;
    text-align: center;
    margin-bottom: 0;
  }

  .hero-title .accent { display: inline; }

  .hero-subtitle {
    font-size: clamp(22px, 5.5vw, 32px);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
  }

  .hero-content .ornament { margin-left: 0; margin-right: auto; }

  .hero-card {
    border-radius: 24px;
    padding: 24px;
    font-size: 18px;
    line-height: 32px;
    text-align: left;
  }

  .ornament--standalone { padding: 24px 0; }

  .section {
    padding: 50px 20px;
  }

  .section--two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .create-cv .col-text,
  .quest .col-text {
    padding: 0;
    margin-left: 0;
  }

  /* Mobile: text first, image below (matches mockup) */
  .create-cv .col-image,
  .quest .col-image { order: 2; }
  .create-cv .col-text,
  .quest .col-text { order: 1; }

  .create-cv .section-heading,
  .quest .section-heading { text-align: center; }

  .create-cv .section-heading .line-1 { font-size: clamp(40px, 10vw, 70px); }
  .create-cv .section-heading .line-2 {
    margin-left: 0;
    font-size: clamp(36px, 9vw, 64px);
  }

  .section-heading { font-size: clamp(40px, 10vw, 70px); margin-bottom: 30px; }

  .section-body { font-size: 18px; line-height: 32px; }

  .skill {
    grid-template-columns: 28px 100px 1fr;
    gap: 12px;
    min-height: auto;
    padding: 14px 0;
  }
  .skill-bullet { width: 26px; height: 23px; }
  .skill-icon { width: 100px; height: 100px; }
  .skill-label { font-size: 18px; line-height: 28px; }

  .character-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  /* Archer: flush with the bottom edge of the cream gradient on mobile too */
  .quest { padding-bottom: 0; }
  .quest .col-text { padding-bottom: 0; }
  .archer-img {
    max-width: 440px;
    margin: 24px auto 0;
    display: block;
  }

  .inline-text { padding: 30px 20px; }
  .inline-text p { font-size: clamp(20px, 5vw, 32px); line-height: 1.3; }

  .prizes { padding: 50px 20px; }
  .prizes-grid { grid-template-columns: 1fr; gap: 30px; }
  .prize-place { font-size: 44px; }
  .prize-desc { font-size: 18px; line-height: 28px; }

  .mission { padding: 40px 20px 0; }
  .mission-heading {
    font-size: clamp(40px, 10vw, 70px);
    margin-bottom: 24px;
  }

  .mission-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
    margin: 24px 0;
  }

  .mission-block {
    grid-template-columns: 24px 100px 1fr;
    gap: 12px;
  }
  .mission-block .bullet { width: 24px; height: 21px; }
  .mission-block .icon { width: 100px; height: 100px; }
  .mission-text .label { line-height: 32px; }
  .mission-text .date.big { font-size: 32px; line-height: 36px; }

  .cta-button {
    width: 100%;
    min-width: 0;
    font-size: 20px;
    height: 56px;
  }

  .site-footer { padding: 40px 20px 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .logo--large img { height: 72px; }

  .footer-col h4,
  .footer-col li { font-size: 18px; line-height: 36px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
}

/* ==================================================================
   Animations
   ================================================================== */

/* --- Reveal on scroll (fade-in-up) ------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- "Breath" idle animation ------------------------------------- */
@keyframes breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

/* Knight: breath from center */
.hero-knight {
  animation: breath 5s ease-in-out infinite;
  transform-origin: center center;
}

/* Archer: breath anchored to the bottom so feet stay on gradient edge */
.archer-img {
  animation: breath 5.5s ease-in-out infinite;
  transform-origin: center bottom;
}

@media (prefers-reduced-motion: reduce) {
  .hero-knight, .archer-img { animation: none; }
}

/* --- Prize card hover -------------------------------------------- */
.prize-card {
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  cursor: default;
}

.prize-image {
  transition: transform .45s cubic-bezier(.2,.7,.2,1),
              filter   .45s ease;
}

.prize-place {
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              color    .25s ease;
}

.prize-card:hover {
  transform: translateY(-8px);
}

.prize-card:hover .prize-image {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.18));
}

.prize-card:hover .prize-place {
  transform: translateY(-2px);
}

/* --- CTA pulse --------------------------------------------------- */
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(236, 0, 0, .55); }
  70%  { box-shadow: 0 0 0 18px rgba(236, 0, 0, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(236, 0, 0, 0);  }
}

.cta-button {
  animation: cta-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}

.cta-button:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .cta-button { animation: none; }
}

