/*
Theme Name: Malowane Kamyki
Theme URI: https://malowanekamyki.pl
Author: Grażyna Plopa
Author URI: https://malowanekamyki.pl
Description: Własny motyw dla społeczności Malowane Kamyki – największej polskiej grupy miłośników malowania kamieni.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: malowanekamyki
Tags: custom-theme, custom-menu, featured-images, gallery
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:      #8fdce9;
    --color-primary-dark: #5bbfd0;
    --color-primary-deep: #2e9db5;
    --color-accent:       #e96f8f;
    --color-text:         #2d2d2d;
    --color-text-light:   #666666;
    --color-bg:           #ffffff;
    --color-bg-soft:      #f4fbfd;
    --color-border:       #d4eff5;
    --color-white:        #ffffff;
    --font-heading:       'Playfair Display', Georgia, serif;
    --font-body:          'Lato', Arial, sans-serif;
    --radius:             10px;
    --shadow:             0 4px 24px rgba(143,220,233,0.18);
    --shadow-hover:       0 8px 36px rgba(143,220,233,0.35);
    --transition:         0.3s ease;
    --max-width:          1200px;
    --header-height:      80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary-deep);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 14px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-deep);
    border-color: var(--color-primary-deep);
}

.btn-outline:hover {
    background: var(--color-primary-deep);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.btn-facebook:hover {
    background: #0d65d9;
    border-color: #0d65d9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24,119,242,0.35);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 16px rgba(143,220,233,0.2);
    height: var(--header-height);
}

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

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo-img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* custom logo WP */
.site-logo .custom-logo-link img,
.site-logo .custom-logo {
    height: 56px;
    width: auto;
    display: block;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo-text .logo-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-deep);
}

.site-logo-text .logo-tagline {
    font-size: 0.72rem;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav */
#site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

#primary-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item a,
#primary-menu li.current_page_item a {
    background: var(--color-bg-soft);
    color: var(--color-primary-deep);
}

#primary-menu .menu-facebook-link a {
    background: #1877f2;
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#primary-menu .menu-facebook-link a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") center/contain no-repeat;
}

#primary-menu .menu-facebook-link a:hover {
    background: #0d65d9;
    color: #fff;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c8f0f7 50%, #e8f8fb 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-deep);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-title span {
    color: var(--color-primary-deep);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-deep);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.hero-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-image-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-item:nth-child(1) {
    transform: translateY(-16px);
}

.hero-image-item:nth-child(4) {
    transform: translateY(16px);
}

.hero-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    font-size: 3rem;
    color: var(--color-primary-deep);
    opacity: 0.4;
}

/* ============================================================
   FACEBOOK BANNER
   ============================================================ */
.fb-banner {
    background: linear-gradient(90deg, #1877f2 0%, #1464cc 100%);
    color: #fff;
    padding: 28px 0;
}

.fb-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.fb-banner-text h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.fb-banner-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0;
}

.fb-banner-text strong {
    color: #fff;
}

.fb-banner .btn {
    background: #fff;
    color: #1877f2;
    border-color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.fb-banner .btn:hover {
    background: rgba(255,255,255,0.9);
    color: #1464cc;
    transform: translateY(-2px);
}

/* ============================================================
   LATEST EVENTS
   ============================================================ */
.events-section {
    background: var(--color-bg);
}

.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 48px;
}

.events-grid .event-card {
    flex: 0 0 calc(33.333% - 19px);
    max-width: calc(33.333% - 19px);
}

.event-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.event-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-soft);
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.event-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.event-card h3 a:hover {
    color: var(--color-primary-deep);
}

.event-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.event-card .btn {
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 0.88rem;
}

.events-cta {
    text-align: center;
}

/* No events */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    grid-column: 1/-1;
}

.no-events p {
    font-size: 1.1rem;
}

/* ============================================================
   ABOUT / COMMUNITY SECTION
   ============================================================ */
.community-section {
    background: var(--color-bg-soft);
}

.community-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.community-content h2 {
    margin-bottom: 20px;
}

.community-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.community-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.highlight-item {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.highlight-item .highlight-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.highlight-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary-deep);
}

.highlight-item span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.community-image-wrap {
    position: relative;
}

.community-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 4/5;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-admin-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 220px;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-deep);
    flex-shrink: 0;
}

.admin-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
}

.admin-info span {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

/* ============================================================
   GALLERY PREVIEW
   ============================================================ */
.gallery-section {
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-soft);
    cursor: pointer;
    position: relative;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(143,220,233,0.0);
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(46,157,181,0.25);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    opacity: 0.4;
}

.gallery-cta {
    text-align: center;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    background: var(--color-bg-soft);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all var(--transition);
    color: var(--color-text);
}

.contact-method:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
    color: var(--color-text);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-method-icon.messenger {
    background: linear-gradient(135deg, #00b2ff, #0668e1, #d219df);
}

.contact-method-icon.form {
    background: var(--color-primary);
}

.contact-method-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-method-info span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
    margin-bottom: 28px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: #1c2b30;
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo-text .logo-name {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.footer-brand .site-logo-text .logo-tagline {
    color: rgba(255,255,255,0.5);
}

.footer-desc {
    margin: 20px 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.75;
}

.footer-stat-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-stat {
    text-align: center;
}

.footer-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.footer-stat span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a::before {
    content: '›';
    color: var(--color-primary);
    font-size: 1.1rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
}

.footer-contact-item .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}

.footer-contact-item a:hover {
    color: var(--color-primary);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-text);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c8f0f7 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Events page */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.event-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.event-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-list-image {
    aspect-ratio: unset;
    min-height: 200px;
    background: var(--color-bg-soft);
    overflow: hidden;
    position: relative;
}

.event-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-list-body {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
}

.event-list-body h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.event-list-body h2 a {
    color: var(--color-text);
}

.event-list-body h2 a:hover {
    color: var(--color-primary-deep);
}

.event-list-body p {
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: 20px;
}

/* Gallery page */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-page-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg-soft);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.gallery-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-page-item:hover {
    box-shadow: var(--shadow-hover);
}

.gallery-page-item:hover img {
    transform: scale(1.06);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
    background: none;
    border: none;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Single post / page */
.entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px;
}

.entry-content h2,
.entry-content h3 {
    margin: 32px 0 16px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.entry-content ul li {
    list-style: disc;
    margin-bottom: 6px;
}

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */
.notice {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.notice-success {
    background: #e8f8f0;
    color: #1a7a4a;
    border-left: 4px solid #2ecc71;
}

.notice-error {
    background: #fde8e8;
    color: #7a1a1a;
    border-left: 4px solid #e74c3c;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a {
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-text);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 999;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    color: var(--color-text);
    box-shadow: var(--shadow-hover);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .community-inner {
        grid-template-columns: 1fr;
    }

    .community-image-wrap {
        display: none;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* wydarzenia grid: 2 kolumny na tabletach */
    .events-grid .event-card {
        flex: 0 0 calc(50% - 14px);
        max-width: calc(50% - 14px);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .section {
        padding: 56px 0;
    }

    .menu-toggle {
        display: flex;
    }

    #primary-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        border-top: 2px solid var(--color-border);
    }

    #primary-menu.open {
        display: flex;
    }

    #primary-menu li {
        width: 100%;
    }

    #primary-menu li a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .event-list-item {
        grid-template-columns: 1fr;
    }

    .event-list-body {
        padding: 24px;
    }

    .community-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

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

    .gallery-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* wydarzenia grid: 1 kolumna na mobile */
    .events-grid .event-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .fb-banner-inner {
        text-align: center;
        justify-content: center;
    }

    .community-highlights {
        grid-template-columns: 1fr;
    }

    .footer-stat-row {
        justify-content: center;
    }
}

/* ============================================================
   HERO IMAGE – pełna szerokość 1920×800
   ============================================================ */
.site-hero {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-soft);
    max-height: 800px;
}

.site-hero-image {
    width: 100%;
    height: 800px;
    position: relative;
}

.site-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-hero-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #c8f0f7 100%);
}

.site-hero-placeholder-inner {
    text-align: center;
    color: var(--color-text);
}

.site-hero-placeholder-inner span {
    font-size: 4rem;
    display: block;
    margin-bottom: 12px;
}

.site-hero-placeholder-inner p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.site-hero-placeholder-inner small {
    font-size: 0.85rem;
    color: var(--color-text-light);
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .site-hero-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .site-hero-image {
        height: 200px;
    }
}

/* ============================================================
   BADGE – bezpłatne / płatne wydarzenia
   ============================================================ */
.badge-free {
    background: #e8f8f0;
    color: #1a7a4a;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #b6e8d0;
}

.badge-paid {
    background: #fef3e8;
    color: #7a4a1a;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #f5d5a0;
}

.event-card-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--color-text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--color-primary-dark);
    opacity: 0.3;
    background: var(--color-bg-soft);
    min-height: 180px;
}

/* ============================================================
   EVENT META GRID – kafelki szczegółów
   ============================================================ */
.event-meta-item {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 16px;
    border-left: 3px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-meta-item .meta-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.event-meta-item strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
}

.event-meta-item span {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 600;
}

/* ============================================================
   COMMUNITY – dodatkowe style
   ============================================================ */
.community-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.community-text {
    margin-bottom: 28px;
}

.community-text p {
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.contact-intro h2 {
    margin-bottom: 12px;
}

.contact-intro p {
    color: var(--color-text-light);
    margin-bottom: 28px;
}
