/* ==========================================================================
   PERSPEKTYWY 2026 - Grafit + Złoto
   Institutional Minimalist Template
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    --color-primary-dark: #111827;
	--color-active: #FF914D;
	--color-inactive: #2F3A9C;
	--color-inactive-submenu: #B1BFFF;
    --color-accent: #F59E0B;
    --color-accent-30: rgba(245, 158, 11, 0.3);
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    --font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "League Spartan", "Montserrat", sans-serif;
    --max-width: 1152px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

a.link {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

a.link:hover {
    color: var(--color-gray-900);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-gray-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: var(--spacing-lg);}
h2 { font-size: 1.5rem; margin-bottom: var(--spacing-lg); }
h3 { font-size: 1.125rem; }

p { margin-bottom: var(--spacing-md); }
p:last-child { margin-bottom: 0; }

.label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-top {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-top__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-top__brand {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    letter-spacing: 0.025em;
    z-index: 101;
}

/* Hamburger button */
.nav-top__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-top__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-700);
    transition: all 0.3s ease;
    position: relative;
}

.nav-top__toggle span::before,
.nav-top__toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-700);
    transition: all 0.3s ease;
}

.nav-top__toggle span::before {
    top: -7px;
}

.nav-top__toggle span::after {
    top: 7px;
}

/* Hamburger animation - open state */
.nav-top__toggle.is-active span {
    background-color: transparent;
}

.nav-top__toggle.is-active span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-top__toggle.is-active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Desktop menu */
.nav-top__menu ul {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-top__menu a {
    font-size: 0.875rem;
    color: var(--color-inactive);
    transition: color 0.2s ease;
    text-decoration: none;
	font-weight: 600;
}

.nav-top__menu a:hover,
.nav-top__menu .active > a,
.nav-top__menu .current > a {
    color: var(--color-active);
    font-weight: 600;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-top__toggle {
        display: flex;
    }
    
    .nav-top__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-top__menu.is-open {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-top__menu ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }
    
    .nav-top__menu a {
        font-size: 1.25rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* --------------------------------------------------------------------------
   Hero Header
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(90deg,rgba(1, 1, 3, 1) 0%, rgba(53, 51, 205, 1) 80%);
    color: var(--color-white);
}

.hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.hero__badge > img {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero__eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-active);
    margin-bottom: var(--spacing-md);
}

.hero__title {
	font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.hero__title span {
    font-weight: 600;
    font-size: 3.5rem;
    letter-spacing: 0.05em;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-active);
	text-transform: uppercase;
}

.hero__badge {
    text-align: right;
}

.hero__badge img {
    width: 400px;
    height: auto;
}

.hero__badge-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

.hero__badge-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
}

p > iframe {
    margin: 0 auto;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs-bar {
    border-top: 1px solid var(--color-gray-800);
}

.tabs-bar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.tabs-bar a,
.tabs-bar span {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.875rem;
	font-weight: 600;
    color: var(--color-inactive-submenu);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tabs-bar a:hover {
    color: var(--color-gray-300);
}

.tabs-bar .active > a,
.tabs-bar .current > a {
	position: relative;
    color: var(--color-active);
}

.tabs-bar .current > a::before {
	content: "";
    position: absolute;
	bottom: 5px;
	left: 20%;
	background-color: var(--color-active);
	height: 2px;
	width: 60%;
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.main-content {
    padding: var(--spacing-2xl) 0;
}

.main-content__inner {
    display: flex;
    gap: var(--spacing-3xl);
}

.content-column {
    flex: 1;
    min-width: 0;
}

.content-top { margin-bottom: var(--spacing-xl); }
.content-bottom { margin-top: var(--spacing-xl); }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
}

.sidebar-module {
    margin-bottom: var(--spacing-lg);
}

.sidebar-module__title {
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.patron-list {
    list-style: none;
}

.patron-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.patron-item__avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--color-gray-100);
    border-radius: 50%;
    flex-shrink: 0;
}


.patron-item > div:first-child {
    flex-shrink: 0;
}

.patron-item .w-24 {
    width: 96px;
    height: 96px;
    min-width: 96px;
    flex-shrink: 0;
}

.patron-item p,
.patron-item__name,
.patron-item__role {
    word-break: break-word;
    overflow-wrap: break-word;
}

.patron-item__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-900);
}

.patron-item__role {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* Location Card */
.location-card {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.location-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
    margin-bottom: var(--spacing-sm);
}

.location-card__venue {
    font-weight: 500;
}

.location-card__address {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

/* --------------------------------------------------------------------------
   Video Embed
   -------------------------------------------------------------------------- */
.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-gray-100);
    margin-bottom: var(--spacing-xl);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder__btn {
    width: 64px;
    height: 64px;
    border: 2px solid var(--color-gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-placeholder__btn:hover {
    border-color: var(--color-accent);
}

.video-placeholder__btn::after {
    content: "";
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--color-gray-400);
    margin-left: 4px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-gray-800);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features-section {
    background: var(--color-gray-50);
    padding: var(--spacing-2xl) 0;
}

.features-section__title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
}

.feature-card__desc {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--spacing-lg) 0;
}

.footer__columns, #wrapper-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer__column h4, .footer-widget .widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
}

.footer__column ul, .footer-widget ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer__column li, .footer-widget li {
    margin-bottom: var(--spacing-sm);
}

.footer__column a, .footer-widget a {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer__column a:hover, .footer-widget a:hover {
    color: var(--color-gray-900);
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-gray-100);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

.footer__inner {
    padding: var(--spacing-xl) 0;
    background-color: #fcfcfc;
}


@media (max-width: 1024px) {
    .footer__columns,
    #wrapper-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer__columns,
    #wrapper-footer {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Forms (for Contact page)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--color-gray-300);
    background: var(--color-white);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.com-content-article ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.footer-menu a {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--color-gray-900);
}

.mapa-location {
    background-color: #111827;
}

.hero__eyebrow::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 32px;
    background-color: #E31E24;
    margin-right: 8px;
    vertical-align: middle;
}

.hero__subtitle::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: #3331C6;
    margin-right: 8px;
    vertical-align: middle;
	margin-bottom: 3px;
}

.hero__content {
    margin-top: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-content__inner {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .patronat {
        grid-column: span 2 / span 2;
    }

    .patronat .patronat__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);  
    }

    .hero__content {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 48px;
    }
    
    .hero__inner {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .hero__badge {
        text-align: left;
    }
    
    .hero__title {
        font-size: 2.25rem;
    }

    .hero__title span {
        font-size: 2.5rem;
    }

    .hero__badge img {
        display: none;
    }
    
    .tabs-bar ul {
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        text-align: center;
    }

    h1 {
        font-size: 2.25rem; 
    }

    h2 {
        font-size: 1.25rem; 
    }

    h3 {
        font-size: 1rem; 
    }

    .sidebar {
        grid-template-columns: repeat(1, 1fr);
    }

    .patronat {
        grid-column: span 1 / span 1;
    }

    .patronat .patronat__list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-lg { margin-top: var(--spacing-lg); }

/* ---------------------------------------------------------------------------
   Gallery
   --------------------------------------------------------------------------- */

.gallery-page-title {
   font-family: "League Spartan", sans-serif;
   font-size: 2.5rem;
   font-weight: 700;
   margin-bottom: 0.25rem;
}

.gallery-page-credit {
   font-size: 0.875rem;
   color: #6b7280;
   margin-bottom: 2rem;
}

    /* Sekcja galerii */
    .gallery-section {
      margin-bottom: 3rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid #e5e7eb;
    }

    .gallery-section:last-child {
      border-bottom: none;
    }

    .gallery-section-title {
      font-family: "League Spartan", sans-serif;
      font-size: 1.25rem;
      font-weight: 600;
      text-align: center;
      margin-bottom: 0.25rem;
    }

    .gallery-section-subtitle {
      font-size: 0.875rem;
      color: #6b7280;
      text-align: center;
      margin-bottom: 0.5rem;
    }

    .gallery-section-link {
      display: block;
      text-align: center;
      font-size: 0.875rem;
      color: #2563eb;
      margin-bottom: 1rem;
    }

    .gallery-section-link:hover {
      text-decoration: underline;
    }

    /* Grid miniaturek */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .gallery-thumb {
      aspect-ratio: 4/3;
      overflow: hidden;
      border-radius: 0.375rem;
      cursor: pointer;
      position: relative;
    }

    .gallery-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .gallery-thumb:hover img {
      transform: scale(1.05);
    }

    .gallery-thumb::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0);
      transition: background 0.3s ease;
    }

    .gallery-thumb:hover::after {
      background: rgba(0,0,0,0.1);
    }

    /* Lightbox */
    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.95);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
    }

    .lightbox-content img {
      max-width: 100%;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 0.5rem;
    }

    .lightbox-close {
      position: absolute;
      top: -2.5rem;
      right: 0;
      background: none;
      border: none;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
      padding: 0.5rem;
      line-height: 1;
    }

    .lightbox-close:hover {
      color: #f59e0b;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.1);
      border: none;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
      padding: 1rem 1.25rem;
      border-radius: 0.5rem;
      transition: background 0.2s;
    }

    .lightbox-nav:hover {
      background: rgba(255,255,255,0.2);
    }

    .lightbox-prev { left: -4rem; }
    .lightbox-next { right: -4rem; }

    .lightbox-caption {
      color: #fff;
      text-align: center;
      margin-top: 1rem;
      font-size: 0.875rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
      }

      .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
      }

      .lightbox-prev { left: 0.5rem; }
      .lightbox-next { right: 0.5rem; }
    }

    @media (max-width: 480px) {
      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }