/*
Theme Name: PMPrecykl Theme
Theme URI: https://pmprecykl.local
Author: PMPrecykl
Description: Custom WordPress theme based on the PMPrecykl Figma website design.
Version: 1.0.0
Text Domain: pmprecykl-theme
*/

:root {
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--gray-50);
}

.section-dark {
  background: var(--gray-900);
  color: #fff;
}

.section-green {
  background: var(--green-600);
  color: #fff;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.top-bar {
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-600);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 10px 0;
}

.nav-wrap .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--gray-700);
  font-weight: 500;
}

.nav-list a.active,
.nav-list a:hover {
  color: var(--green-600);
}

.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/woods.jpg") center center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.hero-services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/woods2.jpg") center center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero-about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/woods3.jpg") center center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/winter1.jpg") center center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 14px;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 740px;
  color: var(--green-50);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: var(--green-700);
}

.btn-primary:hover {
  background: var(--green-50);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-green {
  background: var(--green-600);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-700);
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card p,
.card li {
  color: var(--gray-600);
}

.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
}

.check {
  color: var(--green-600);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.stats strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.stats span {
  color: #d1fae5;
}

.site-footer {
  background: var(--gray-900);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 54px 0;
}

.site-footer h3 {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--gray-400);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  color: var(--gray-400);
  text-align: center;
  padding: 18px 0 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.mobile-contacts {
  align-self: start;
}

.mobile-contacts ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.notice {
  background: var(--green-50);
  color: var(--green-900);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.pmp-diag-section {
  background: #fff;
}

.pmp-diag-title {
  text-align: center;
  margin-bottom: 18px;
}

.pmp-diag-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 28px;
}

#pmp-diag-stage {
  width: 100%;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

#pmp-diag-wrapper {
  width: 1200px;
  height: 1161px;
  background: url("assets/diagram/bg.jpg") no-repeat;
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: top center;
  transform: translateX(-50%) scale(1);
}

#pmp-diag {
  width: 100%;
  height: 100%;
  position: relative;
  transition: background-color 0.3s ease;
}

#pmp-diag.is-active {
  background: rgba(255, 255, 255, 0.8);
}

.pmp-diag-btn {
  background: url("assets/diagram/circle.png") no-repeat center center / cover;
  width: 222px;
  height: 223px;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 30px;
  color: #006838;
  cursor: pointer;
  font-family: Arial, sans-serif;
  position: absolute;
  transition: opacity 0.2s ease;
}

.pmp-diag-btn.is-dim {
  opacity: 0.2;
  cursor: default;
}

#collecting {
  top: 161px;
  left: 533px;
}

#sorting {
  top: 399px;
  left: 763px;
}

#recycling {
  top: 692px;
  left: 606px;
}

#rawMaterial {
  top: 635px;
  left: 281px;
}

#product {
  top: 306px;
  left: 235px;
}

.pmp-diag-image {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pmp-diag-image.is-visible {
  opacity: 1;
}

#imgcollecting1 {
  left: 190px;
  top: 137px;
}

#imgcollecting2 {
  top: 357px;
  left: 505px;
}

#imgcollecting3 {
  top: 140px;
  left: 730px;
}

#imgsorting1 {
  top: 56px;
  left: 733px;
}

#imgsorting2 {
  left: 421px;
  top: 375px;
}

#imgsorting3 {
  top: 597px;
  left: 734px;
}

#imgrecycling1 {
  top: 582px;
  left: 800px;
}

#imgrecycling2 {
  left: 500px;
  top: 360px;
}

#imgrecycling3 {
  left: 282px;
  top: 761px;
}

#imgrawMaterial1 {
  top: 391px;
  left: 27px;
}

#imgrawMaterial2 {
  top: 379px;
  left: 443px;
}

#imgrawMaterial3 {
  top: 795px;
  left: 457px;
}

#imgproduct1 {
  top: 28px;
  left: 395px;
}

#imgproduct2 {
  top: 480px;
  left: 401px;
}

#imgproduct3 {
  left: 21px;
  top: 486px;
}

@media (max-width: 980px) {
  .grid-4,
  .grid-3,
  .stats,
  .footer-grid,
  .two-col,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .pmp-diag-btn {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .top-bar {
    display: none;
  }

  .nav-list {
    gap: 14px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero .container,
  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .grid-4,
  .grid-3,
  .stats,
  .footer-grid,
  .two-col,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
