/*
Theme Name: Wesole Swinki
Theme URI: https://wesoleswinki.pl
Author: CyberOaza
Description: Jednostronicowy, lekki i zabawny motyw dla wesoleswinki.pl.
Version: 1.0.4
License: GPL-2.0-or-later
Text Domain: wesole-swinki
*/

:root {
  --ink: #25131a;
  --muted: #684b57;
  --pink: #ff8ab3;
  --pink-soft: #ffd7e6;
  --rose: #f24d86;
  --cream: #fff7de;
  --sun: #ffd45a;
  --grass: #8bd869;
  --sky: #bdefff;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 60px rgba(123, 52, 83, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--sky) 0%, #fff9ee 58%, #fff 100%);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 28px));
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  border: 2px solid rgba(37, 19, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(67, 36, 49, 0.12);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--pink-soft);
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 118px 20px 120px;
  place-items: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: 120px;
  right: max(36px, 8vw);
  width: 118px;
  height: 118px;
  background: var(--sun);
  box-shadow: 0 0 0 18px rgba(255, 212, 90, 0.22);
}

.hero::after {
  right: -8vw;
  bottom: -80px;
  left: -8vw;
  height: 220px;
  border-radius: 50% 50% 0 0;
  background: var(--grass);
  box-shadow: inset 0 18px 0 rgba(255, 255, 255, 0.26);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(30px, 6vw, 84px);
  width: min(1120px, 100%);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 2px solid rgba(242, 77, 134, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: 0.96;
}

.lead {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 26px rgba(37, 19, 26, 0.18);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.pig-scene {
  position: relative;
  min-height: 470px;
}

.pig {
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(340px, 82vw);
  aspect-ratio: 1.08;
  transform: translate(-50%, -50%);
  animation: wiggle 5s ease-in-out infinite;
}

.pig-face {
  position: absolute;
  inset: 15% 4% 4%;
  border: 8px solid rgba(37, 19, 26, 0.08);
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(145deg, #ffacd0 0%, #ff83b0 70%);
  box-shadow: var(--shadow), inset -20px -24px 0 rgba(193, 41, 92, 0.1);
}

.ear {
  position: absolute;
  top: 7%;
  width: 31%;
  height: 35%;
  border: 8px solid rgba(37, 19, 26, 0.08);
  background: #ff9ac2;
  transform-origin: 50% 85%;
}

.ear.left {
  left: 8%;
  border-radius: 72% 28% 70% 32%;
  transform: rotate(-22deg);
}

.ear.right {
  right: 8%;
  border-radius: 28% 72% 32% 70%;
  transform: rotate(22deg);
}

.eye {
  position: absolute;
  top: 39%;
  width: 24px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 5px 6px 0 rgba(255, 255, 255, 0.32);
}

.eye.left {
  left: 31%;
}

.eye.right {
  right: 31%;
}

.snout {
  position: absolute;
  top: 51%;
  left: 50%;
  width: 35%;
  height: 25%;
  border: 6px solid rgba(37, 19, 26, 0.08);
  border-radius: 48%;
  background: #ffc1d9;
  transform: translateX(-50%);
}

.snout-button {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.snout-button:hover,
.snout-button:focus-visible {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5);
  outline: none;
  transform: translateX(-50%) scale(1.05);
}

.snout-button:active {
  transform: translateX(-50%) scale(0.96);
}

.nostril {
  position: absolute;
  top: 43%;
  width: 16px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 19, 26, 0.74);
}

.nostril.left {
  left: 29%;
}

.nostril.right {
  right: 29%;
}

.smile {
  position: absolute;
  top: 73%;
  left: 50%;
  width: 94px;
  height: 38px;
  border-bottom: 7px solid rgba(37, 19, 26, 0.72);
  border-radius: 0 0 90px 90px;
  transform: translateX(-50%);
}

.pig-scene.is-party .pig {
  animation: party-wiggle 650ms ease-in-out;
}

.party-dot {
  position: absolute;
  z-index: 3;
  top: 49%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.38);
  animation: pop 820ms ease-out forwards;
  animation-delay: var(--delay);
}

.party-dot:nth-child(3n) {
  background: var(--rose);
}

.party-dot:nth-child(3n + 1) {
  background: var(--grass);
}

.speech {
  position: relative;
  top: 0;
  right: auto;
  z-index: 4;
  margin-left: auto;
  max-width: 250px;
  padding: 14px 16px;
  border: 3px solid rgba(37, 19, 26, 0.08);
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(3deg);
}

.content-band {
  position: relative;
  z-index: 2;
  padding: 70px 20px;
  background: #fffaf2;
}

.content-band.alt {
  background: #fff7fb;
}

#o-nas {
  padding-top: 112px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 660px;
  margin: 0 0 22px;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.12;
}

.section-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.tile {
  min-height: 184px;
  padding: 24px;
  border: 2px solid rgba(37, 19, 26, 0.08);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(123, 52, 83, 0.12);
}

.tile-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  font-size: 28px;
}

.tile h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.fun-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.quote-box {
  padding: 24px;
  border: 3px dashed rgba(242, 77, 134, 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.32;
}

.mini-pigs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-pig {
  display: grid;
  min-height: 116px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(123, 52, 83, 0.12);
  font-size: 48px;
  animation: hop 3.2s ease-in-out infinite;
}

.mini-pig:nth-child(2) {
  animation-delay: 0.25s;
}

.mini-pig:nth-child(3) {
  animation-delay: 0.5s;
}

.contact-panel {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.contact-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.footer {
  padding: 30px 20px 44px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

@keyframes wiggle {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-1deg);
  }
  50% {
    transform: translate(-50%, -52%) rotate(2deg);
  }
}

@keyframes hop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes party-wiggle {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-50%, -55%) rotate(-5deg) scale(1.04);
  }
  50% {
    transform: translate(-50%, -50%) rotate(5deg) scale(1.02);
  }
  75% {
    transform: translate(-50%, -54%) rotate(-3deg) scale(1.05);
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 8px 10px;
  }

  .hero {
    padding-top: 154px;
    padding-bottom: 86px;
  }

  .hero-inner,
  .fun-strip {
    grid-template-columns: 1fr;
  }

  .pig-scene {
    min-height: 390px;
    padding-top: 0;
  }

  .pig {
    top: 61%;
    width: min(300px, 82vw);
  }

  .speech {
    top: 0;
    right: auto;
    margin-right: auto;
    margin-left: auto;
    max-width: min(280px, calc(100vw - 56px));
    font-size: 16px;
    transform: rotate(2deg);
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  #o-nas {
    padding-top: 78px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
