@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Yeseva+One&display=swap');

/* --- 1. PALETA PREMIUM (CzystoĹÄ i CiepĹo) --- */
:root {
    /* Kolory GĹĂłwne - Miodowy Akcent */
    --bear-gold: #E89C48;           /* ZĹoty miĂłd */
    --bear-brown: #8C5E3C;          /* Czekolada */
    --bear-text: #4A3F35;           /* Elegancki ciemny brÄz (nie czarny!) */
    
    /* Natura */
    --sage-accent: #A3B178;         /* Zgaszona oliwka */
    --sage-light: #F2F5E9;          /* Bardzo jasna, ĹwieĹźa zieleĹ */
    
    /* TĹa */
    --paper-warm: #FFFCF7;          /* Ĺmietankowa biel (tĹo caĹej strony) */
    --card-white: #FFFFFF;          /* Czysta biel (karty) */
    
    /* UI Premium */
    --radius-xl: 32px;              /* MiÄkkie rogi */
    --radius-btn: 50px;             /* Przyciski */
    
    /* Cienie - To one robiÄ efekt 3D */
    --shadow-soft: 0 10px 40px -10px rgba(74, 63, 53, 0.05); /* Bardzo delikatny cieĹ */
    --shadow-float: 0 20px 60px -15px rgba(232, 156, 72, 0.15); /* CieĹ przy uniesieniu */
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. GLOBALNY RESET & CZYSTE TĹO --- */
body {
    font-family: 'Nunito', sans-serif !important;
    background-color: var(--paper-warm) !important;
    /* Subtelny gradient: gĂłra jaĹniejsza (sĹoĹce), dĂłĹ cieplejszy */
    /* Warstwy: gradient na wierzchu, zdjęcie pod spodem */
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.01) 0%, rgba(255,252,247,0.88) 400px, rgba(255,252,247,0.55) 100%),
        url('images/bg.jpg') !important;
    background-position: center top, center center;
    color: var(--bear-text) !important;
    line-height: 1.8 !important;
    font-size: 16px; /* TĹo stoi w miejscu przy przewijaniu */
    position: relative;
}

/* Dodajemy ziarno na wierzch */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6; /* Bardzo delikatne */
}

/* Typografia */
h1, h2, h3, h4, h5, h6, .h1, .hero-title, .logo-area, .sidebar-header {
    font-family: 'Yeseva One', serif !important;
    color: var(--bear-text) !important;
    font-weight: 400 !important;
}

a { text-decoration: none !important; transition: var(--transition); }
ul, ol { list-style: none !important; padding: 0 !important; margin: 0 !important; }

/* Selekcja tekstu w kolorze motywu */
::selection {
    background: var(--bear-gold);
    color: #fff;
}

/* Scrollbar - minimalistyczny */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb { background: #D4C8BE; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--bear-gold); }

/* --- 3. HEADER --- */
.top-bar { padding: 20px 0; background: transparent; }
.top-bar-container {
    max-width: 1280px; margin: 0 auto; padding: 0 30px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo-area { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.logo-leaf { color: var(--sage-accent); transform: rotate(-15deg); }

/* Przycisk nagĹĂłwka - Minimalistyczny */
.btn-nature {
    background: var(--bear-gold);
    color: #fff !important; padding: 12px 30px; border-radius: var(--radius-btn);
    font-weight: 700; box-shadow: 0 5px 15px rgba(232, 156, 72, 0.3);
}
.btn-nature:hover {
    background: #FBCB85; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 156, 72, 0.4);
}

/* --- 4. HERO SECTION (WizytĂłwka) --- */
.hero-module { padding: 60px 0 100px; }
.hero-container {
    max-width: 1280px; margin: 0 auto; padding: 0 30px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-subtitle {
    display: inline-block; 
    color: var(--bear-gold); 
    font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(232, 156, 72, 0.2);
    padding-bottom: 5px;
}

.hero-title { font-size: 3.5rem; line-height: 1.15; margin-bottom: 30px; }
.hero-title span { color: var(--bear-gold); position: relative; }
/* Ozdobny "mazej" pod tekstem */
.hero-title span::after {
    content: ''; position: absolute; bottom: 8px; left: -5px; width: 105%; height: 10px;
    background: var(--sage-light); z-index: -1; border-radius: 5px; opacity: 1;
}

/* Opis w sekcji hero */
.hero-desc {
    font-size: 1.15rem;
    color: #7A6E64;
    line-height: 1.9;
    max-width: 480px;
}

/* Obrazek - Czysty Blob bez ramek */
.blob-image-wrapper { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1/1; margin: 0 auto; }
.blob-bg {
    position: absolute; inset: 0; background: var(--sage-light);
    border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%;
    animation: morph 12s ease-in-out infinite; opacity: 0.6;
}
.blob-img {
    position: absolute; inset: 20px; background: #fff;
    border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%;
    overflow: hidden; 
    box-shadow: var(--shadow-soft); /* MiÄkki cieĹ */
    animation: morph 12s ease-in-out infinite reverse;
}
.blob-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph { 0%, 100% { border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%; } 50% { border-radius: 32% 68% 38% 62% / 63% 42% 58% 37%; } }

/* --- 5. UKĹAD KART (Lewitacja) --- */
.app-wrapper {
    max-width: 1280px; margin: 0 auto; padding: 0 30px;
    display: grid; grid-template-columns: 280px 1fr; gap: 50px;
}
.sidebar-card ul li {
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(140, 94, 60, 0.1); /* Bardzo delikatna linia oddzielajÄca */
}

.sidebar-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bear-brown);
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(232, 156, 72, 0.1);
    border-radius: 10px;
}

.sidebar-card ul li a {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    font-weight: 600;
    color: #6B5E55; /* Szary brÄz zamiast czarnego */
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* Efekt po najechaniu - maĹa kropka/liĹÄ */
.sidebar-card ul li a:hover, 
.sidebar-card ul li.active a { /* JeĹli CMS dodaje klasÄ active */
    color: var(--bear-brown);
    background: #FFFBF2; /* Bardzo jasny krem */
    padding-left: 15px;
}

.sidebar-card ul li a:hover::before {

    color: var(--bear-gold);
    margin-right: 8px;
    font-size: 1.5em;
    line-height: 0;
}

/* GĹĂłwna zawartoĹÄ - Reset */
.main-content-card { background: transparent; padding: 0; box-shadow: none; }

/* Karty ArtykuĹĂłw */
article, .article {
    background: var(--card-white) !important;
    border-radius: var(--radius-xl) !important;
    padding: 50px !important;
    margin-bottom: 50px !important;
    /* Klucz do premium: CieĹ, ktĂłry nie jest czarny, tylko brÄzowy */
    box-shadow: var(--shadow-soft) !important; 
    border: 1px solid #fff !important;
    transition: var(--transition);
}

article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float) !important;
}

/* TreĹÄ artykuĹĂłw */
article {
    font-size: 17px !important; /* OdrobinÄ wiÄkszy niĹź 16px */
    color: #5D534A !important; /* ZmiÄkczony czarny */
}

article p {
    margin-bottom: 25px !important; /* WiÄksze odstÄpy miÄdzy akapitami */
    line-height: 1.85 !important;
}

article h2, article h3 {
    color: var(--bear-brown) !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}


/* TytuĹy i treĹÄ */
.article-title { background: transparent !important; padding: 0 !important; margin-bottom: 20px !important; border: none !important; }
.article-title a { font-size: 2rem !important; color: var(--bear-text) !important; display: block; }
.article-title a:hover { color: var(--bear-gold) !important; }

article p, article .p-2 { font-size: 1.05rem !important; color: #665C54 !important; line-height: 1.9 !important; }

/* Przyciski w kartach */
.main-content-card .btn, .text-center .btn {
    background: var(--card-white) !important;
    border: 2px solid var(--bear-gold) !important;
    color: var(--bear-gold) !important;
    padding: 12px 32px !important; border-radius: var(--radius-btn) !important;
    font-weight: 700 !important; font-family: 'Nunito', sans-serif !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.main-content-card .btn:hover, .text-center .btn:hover {
    background: var(--bear-gold) !important; 
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 156, 72, 0.3) !important;
}
.main-content-card .btn i, .text-center .btn i {
    transition: transform 0.3s ease;
}
.main-content-card .btn:hover i, .text-center .btn:hover i {
    transform: translateX(4px);
}
/* Linki kontaktowe w headerze */
.contact-link {
    color: var(--bear-text);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    margin-right: 15px;
    opacity: 0.8;
}
.contact-link:hover {
    opacity: 1;
    color: var(--bear-gold);
}
.contact-link i {
    margin-right: 6px;
    color: var(--sage-accent);
}

/* Top contacts wrapper */
.top-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- 6. MENU MOBILNE --- */
#nav-menu-mobile {
    background: linear-gradient(135deg, var(--bear-brown) 0%, #6B4A32 100%) !important;
}
#nav-menu-mobile ul li a {
    display: block;
    padding: 18px 0;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
#nav-menu-mobile ul li a:hover {
    color: #fff !important;
    padding-left: 15px;
}
#nav-menu-mobile .fa-times {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
#nav-menu-mobile .fa-times:hover {
    color: #fff;
    transform: rotate(90deg);
}


/* --- 9. MOBILE --- */
.mobile-hamburger { 
    display: none; 
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 22px; 
    color: var(--bear-brown); 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 156, 72, 0.15);
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 63, 53, 0.08);
    transition: var(--transition);
}
.mobile-hamburger:hover {
    background: var(--bear-gold);
    color: #fff;
    border-color: var(--bear-gold);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 156, 72, 0.3);
}
.mobile-hamburger:active {
    transform: scale(0.95);
}

@media (max-width: 992px) {
    .app-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .sidebar-card, .top-contacts { display: none; }
    .mobile-hamburger { display: flex; }
    .hero-module { padding: 40px 0 60px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.4rem; }
    .hero-desc { margin: 0 auto; text-align: center; }
    .blob-image-wrapper { max-width: 320px; }
    article { padding: 30px !important; margin-bottom: 30px !important; }
    .article-title a { font-size: 1.5rem !important; }
    footer, .footer { padding: 40px 20px; margin-top: 50px; }
}

@media (max-width: 576px) {
    .top-bar-container { padding: 0 15px; }
    .logo-area { font-size: 18px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.75rem; }
    article { padding: 25px !important; border-radius: 24px !important; }
    .main-content-card .btn, .text-center .btn { 
        padding: 10px 25px !important; 
        font-size: 0.9rem !important; 
    }
}

/* === PREMIUM PATCH v2 (layout + footer + page + accessibility) === */

/* Focus styles (keyboard users) */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid rgba(232,156,72,0.55);
    outline-offset: 3px;
    border-radius: 12px;
}

/* Skip link */
.skip-link{
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    z-index: 10000;
    color: var(--bear-text);
    font-weight: 700;
}
.skip-link:focus{ top: 16px; }

/* Sticky / glass header */
.top-bar{
    position: sticky;
    top: 0;
    z-index: 1500;
    transition: var(--transition);
}
body.is-scrolled .top-bar{
    background: rgba(255, 252, 247, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(140, 94, 60, 0.08);
}

/* Sidebar card (missing in base) */
.sidebar-card{
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 28px 22px;
    border: 1px solid rgba(255,255,255,0.7);
    align-self: start;
    /* position: sticky; */
    top: 92px; /* below header */
}
.sidebar-nav ul{ margin: 0 !important; padding: 0 !important; }
.sidebar-nav li{ margin: 0; }
.sidebar-nav a{
    width: 100%;
}
.sidebar-footer-icon{
    margin-top: 22px;
    text-align: center;
    color: var(--bear-brown);
    opacity: 0.55;
}

/* Make CMS menu output nicer (it is <ul><li><a>...) */
.sidebar-nav ul ul { margin-top: 6px !important; } /* in case CMS nests UL */
.sidebar-nav li a::after{
    content: "";
    margin-left: auto;
    opacity: 0.25;
    transition: var(--transition);
}
.sidebar-nav li a:hover::after{ opacity: 0.6; transform: translateX(4px); }

/* Content area spacing */
.content-area{
    min-width: 0;
}


@media (max-width: 992px){
    .page, .main-content-card .page{ padding: 28px 22px; }
}

/* Improve headings rendered by CMS */
.page .h1, .page h1.h1{
    font-size: 2.1rem;
    margin-bottom: 28px;
}
.text-gray{
    color: #8A7F76 !important;
}

/* Cleaner âno postsâ state */
.page .text-center{
    color: #7A6E64;
}
.page .text-center i{
    color: var(--sage-accent);
    margin-right: 10px;
}

/* Pagination */
.pagination .page-link{
    border: none;
    border-radius: 14px !important;
    margin: 0 6px;
    padding: 10px 14px;
    color: var(--bear-text);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px -18px rgba(74,63,53,0.25);
}
.pagination .page-item.active .page-link{
    background: var(--bear-gold);
    color: #fff;
}
.pagination .page-link:hover{
    transform: translateY(-1px);
    background: rgba(232,156,72,0.12);
}

/* Mobile nav overlay */
.mobile-nav{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 26px 22px;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bear-brown) 0%, #6B4A32 100%);
}
.mobile-nav.is-open{ display: block; }
.mobile-nav-top{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}
.mobile-nav-close{
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: var(--transition);
}
.mobile-nav-close:hover{
    background: rgba(255,255,255,0.14);
    transform: rotate(6deg);
}
.mobile-nav-title{
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
    font-family: 'Yeseva One', serif;
    font-size: 26px;
}
.mobile-nav-links ul{ margin: 0 !important; padding: 0 !important; }
.mobile-nav-links a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px;
    color: rgba(255,255,255,0.88) !important;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mobile-nav-links a::after{  opacity: 0.35; }
.mobile-nav-links a:hover{
    color: #fff !important;
    padding-left: 16px;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
    *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}