/* =============================================
   style.css — maksw.pl
   Zastępuje: bootstrap.min.css, meanmenu.css,
              style.css, responsive.css,
              material-design-iconic-font
   ============================================= */

/* --- Zmienne --------------------------------- */
:root {
  --blue:    #00b1e6;
  --dark:    #1f223e;
  --gray-bg: #f6f6f6;
  --text:    #444;
  --light:   #6c6c6c;
  --white:   #fff;
  --header-h: 100px;
}

/* --- Reset / Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--dark);
  margin: 0;
}

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

a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue); text-decoration: underline; }

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

ul { list-style: none; }

::selection { background: var(--blue); color: #fff; }

/* --- Layout helpers -------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gray-bg { background: var(--gray-bg); }

/* --- HEADER ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.logo { flex-shrink: 0; }
.logo img { height: 45px; width: auto; }

/* nav links */
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue); }

/* hamburger checkbox — hidden on desktop */
.nav-toggle        { display: none; }
.nav-toggle-label  { display: none; }

/* --- HERO ------------------------------------ */
.hero {
  position: relative;
  height: 30vh;
  min-height: 180px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* parallax background — background-attachment:fixed
   robi ten fajny efekt przy scrollu */
.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 0;
}

/* ciemna nakładka żeby tekst był czytelny */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20%;
  max-width: 80%;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.hero-quote {
  font-style: italic;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 0;
}

/* --- SEKCJE (O mnie / Projekty itp.) --------- */
.section { padding: 0; }

.two-col {
  display: flex;
  align-items: stretch;
  min-height: 340px;
}

/* na desktop: tekst po prawej, obraz po lewej */
.two-col .col-text {
  flex: 1;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1;
}

.two-col .col-img {
  flex: 1;
  order: 2;
  overflow: hidden;
}

.two-col .col-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}

/* .reversed: tekst po prawej, obraz po lewej */
.two-col.reversed .col-text { order: 2; }
.two-col.reversed .col-img  { order: 1; }

/* section-title */
.section-title {
  margin-bottom: 16px;
  padding-left: 4em;
}
.section-title h2 {
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 4px;
}
.section-title p {
  font-size: 15px;
  color: var(--light);
  font-style: normal;
  font-weight: 500;
  margin: 0;
}

/* section-content */
.section-content p { color: #555; font-size: 14px; }
.section-content a { color: var(--blue); }

/* hover-reveal (osiągnięcia) */
.hover-reveal { opacity: 0; transition: opacity .3s; }
p:hover .hover-reveal { opacity: 1; }

/* --- FOOTER ---------------------------------- */
.site-footer {
  background: var(--blue);
  padding: 50px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-meme { flex: 0 0 auto; max-width: 300px; }
.footer-meme img {
  border-radius: 4px;
  max-height: 440px;
  width: auto;
  object-fit: contain; /* nie przycinaj, pokaż całe zdjęcie */
}

.footer-spacer { flex: 1; }

.footer-contact h3 {
  color: #fff;
  font-size: 18px;
  text-transform: capitalize;
  margin-bottom: 24px;
}

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.contact-list a,
.contact-list span {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}
.contact-list a:hover { text-decoration: underline; }

/* --- LANGUAGE SELECTOR ----------------------- */
.lang-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255,255,255,.93);
  padding: 8px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  z-index: 9999;
  display: flex;
  gap: 8px;
  border: 1px solid #eee;
}
.lang-selector a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 13px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .25s;
}
.lang-selector a:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  color: var(--blue);
}

/* --- SCROLL TO TOP --------------------------- */
#scroll-top {
  position: fixed;
  bottom: 80px;
  right: 22px;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: none;
  border-radius: 4px;
  z-index: 9998;
  transition: background .2s, transform .2s;
  transform: rotate(0deg);
}
#scroll-top:hover { background: var(--dark); transform: translateY(-2px); }
#scroll-top.visible { display: flex; align-items: center; justify-content: center; }

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */

/* Tablet (≤ 991px) — włącz hamburger */
@media (max-width: 991px) {

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    /* ukryty domyślnie */
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
  }

  /* hamburger label — widoczna */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: #555;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }

  /* gdy checkbox checked → rozwiń menu i animuj hamburgera */
  .nav-toggle:checked ~ .main-nav { max-height: 400px; }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* two-col pionowo */
  .two-col         { flex-direction: column; }
  .two-col .col-text { padding: 36px 24px; order: 1 !important; }
  .two-col .col-img  { order: 2 !important; max-height: 280px; }

  .hero-content h1   { font-size: 28px; }
  .hero-content       { padding: 0 24px; }
}

/* Mały telefon (≤ 480px) */
@media (max-width: 480px) {
  :root { --header-h: 64px; }

  .logo img      { height: 36px; }
  .hero-content h1 { font-size: 22px; }
  .hero-quote    { font-size: 14px; }

  .section-title h2 { font-size: 24px; }

  .footer-inner  { flex-direction: column; }
  .footer-spacer { display: none; }

  .lang-selector { bottom: 10px; right: 10px; padding: 6px 8px; }

  #scroll-top { bottom: 70px; right: 10px; }
}
