/* Aktywizacja Młodzieży — site shell */
:root {
  --accent: #ea7463;
  --accent-hover: #d76959;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --surface: #ffffff;
  --bg: #f7f4f1;
  --bg-deep: #2b2422;
  --line: rgba(26, 26, 26, 0.12);
  --max: 1120px;
  --font: "Nunito", "Segoe UI", sans-serif;
  --display: "Nunito Sans", "Nunito", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list a,
.nav-list button.has-submenu {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-list a:hover,
.nav-list button.has-submenu:hover {
  color: var(--accent);
}

.nav-list .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.nav-list li:hover > .submenu,
.nav-list li:focus-within > .submenu,
.nav-list li.open > .submenu {
  display: block;
}

.nav-list .submenu a {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-links a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 0;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff !important;
}

.btn-light {
  background: #fff;
  color: var(--accent) !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(28, 18, 16, 0.25) 0%, rgba(28, 18, 16, 0.78) 70%, rgba(28, 18, 16, 0.92) 100%),
    url("/wp-content/uploads/2023/03/DSC03576-1-scaled.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  max-width: 28ch;
  line-height: 1.3;
}

.hero p {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: fade-up 0.7s ease both;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: var(--bg-deep);
  color: #fff;
}

.section-dark a {
  color: #ffc4bb;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 52ch;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

.page-header {
  padding: 3rem 0 1.25rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}

.page-header p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 50ch;
}

.prose {
  max-width: 68ch;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose h2,
.prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--display);
  line-height: 1.25;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.split > * {
  flex: 1 1 280px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat {
  flex: 1 1 160px;
  padding: 1.25rem 1.35rem;
  background: rgba(234, 116, 99, 0.1);
  border-left: 4px solid var(--accent);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  flex: 1 1 240px;
  padding: 0;
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.doc-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-list span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  color: var(--accent);
}

.faq-list details p {
  margin: 0.65rem 0 0.2rem;
  color: var(--muted);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-block {
  flex: 1 1 220px;
}

.contact-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.contact-block p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.partners a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.partners a:hover {
  opacity: 1;
}

.partners img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.media-grid figure {
  flex: 1 1 260px;
  margin: 0;
  overflow: hidden;
}

.media-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-grid figure:hover img {
  transform: scale(1.04);
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-partners {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #ffc4bb;
}

.romlifooter {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.romlifooter img {
  max-width: 160px;
  object-fit: contain;
}

/* Blog list (r-template_blog) */
.blog-container {
  padding: 1rem 0 3rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blog-card {
  flex: 1 1 280px;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.blog-title a {
  color: var(--ink);
}

.blog-title a:hover {
  color: var(--accent);
}

.blog-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Article shell keeps .romlicontainer styles from template */
.romlicontainer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 0.75rem;
  }

  .nav-list li.open > .submenu {
    display: block;
  }

  .header-social {
    display: none;
  }
}
