/*
Theme Name: Luxo Wnętrza (Aion Media)
Author: Aion Media
Description: Niestandardowy, ultralekki motyw One-Page.
Version: 1.4
*/

:root {
    --gold: #c5a059;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--light); color: var(--dark); overflow-x: hidden; }
section { padding: 100px 20px; position: relative; }
a { text-decoration: none !important; }

/* --- NAWIGACJA (Wyśrodkowana) --- */
nav { position: fixed; top: 0; width: 100%; padding: 15px 5%; background: rgba(255, 255, 255, 0.98); z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); display: flex; justify-content: center; }
.nav-container { display: flex; align-items: center; justify-content: center; gap: 60px; max-width: 1400px; width: 100%; margin: 0 auto; }
.logo { flex-shrink: 0; display: block; }
.logo img { max-height: 55px; width: auto; display: block; transition: 0.3s; }
nav ul { display: flex; list-style: none; align-items: center; margin: 0; }
nav ul li { margin-left: 30px; }
nav ul li a { text-decoration: none; color: var(--dark); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.mobile-menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; position: absolute; right: 20px; top: 25px;}
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background: var(--dark); transition: 0.3s; }

/* --- PRZYCISKI --- */
.btn-start { background: var(--dark); color: white !important; padding: 10px 25px; border-radius: 50px; transition: 0.3s; display: inline-block; }
.btn-start:hover { background: var(--gold); }

/* --- HERO --- */
#header { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=1920') center/cover; color: white; text-align: center; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
#header h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 10px; }
.scroll-arrow { 
    position: absolute; bottom: 40px; font-size: 1.5rem; color: white !important; 
    width: 55px; height: 55px; border: 2px solid white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: pulse-arrow 2s infinite; 
}
@keyframes pulse-arrow { 
    0% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(255,255,255, 0.4); } 
    50% { transform: translateY(10px); box-shadow: 0 0 0 15px rgba(255,255,255, 0); } 
    100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(255,255,255, 0); } 
}

/* --- O MNIE I OPINIE --- */
#omnie { display: block; background: white; padding: 100px 20px; }
.about-wrapper { display: flex; align-items: center; gap: 60px; max-width: 1200px; width: 100%; margin: 0 auto; }
.about-text { flex: 1; text-align: left; font-size: 1.1rem; line-height: 1.8; }
.about-image { flex: 1; width: 100%; border-radius: 12px; overflow: hidden; }
.about-image img { width: 100%; height: auto; display: block; object-fit: cover; }
.sub-title { font-family: 'Playfair Display', serif; font-size: 2rem; text-align: center; margin-bottom: 40px; color: var(--dark); margin-top: 80px; }

/* --- OPINIE (KARUZELA CSS SCROLL SNAP) --- */
.testimonials-container { width: 100%; max-width: 1200px; margin: 0 auto; text-align: center; display: block; clear: both; }
.testimonials-grid { 
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 30px; 
    padding-bottom: 20px; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.testimonials-grid::-webkit-scrollbar { display: none; }
.testimonial-card { 
    flex: 0 0 calc(33.333% - 20px); scroll-snap-align: start; background: var(--light); 
    padding: 40px 30px; border-radius: 10px; text-align: center; border: 1px solid #eaeaea; 
}
.stars { color: var(--gold); font-size: 1.4rem; margin-bottom: 15px; }
.testimonial-card h4 { margin-bottom: 15px; font-weight: 600; font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.test-content { font-size: 0.95rem; font-style: italic; color: #555; line-height: 1.6; }

/* --- PROJEKTY --- */
#projekty { background: var(--dark); color: white; }
.section-title { font-family: 'Playfair Display', serif; margin-bottom: 40px; font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; text-align: center; }
.portfolio-container { display: flex; width: 100%; max-width: 1400px; height: 60vh; gap: 15px; margin: 0 auto; }
.project-card { position: relative; flex: 1; display: block; color: inherit; text-decoration: none; overflow: hidden; border-radius: 12px; transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.project-card:hover { flex: 3; }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%); z-index: 1; transition: opacity 0.4s ease; }
.project-card img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: all 0.7s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-info { z-index: 2; position: absolute; bottom: 30px; left: 30px; opacity: 0; transition: 0.4s ease; color: white; transform: translateY(10px); }
.project-card:hover .project-info { opacity: 1; transform: translateY(0); }
.project-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; }

/* --- OFERTA (PREMIUM AKORDEON) --- */
#oferta { background: var(--light); }
.offer-accordion-container { width: 100%; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.offer-acc-item { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid #eaeaea; position: relative; transition: border-color 0.3s ease; }
.offer-acc-item.is-popular { border: 2px solid var(--gold); }
.offer-acc-item.open { border-color: var(--dark); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: white; padding: 5px 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; border-radius: 20px; z-index: 5; }
.offer-acc-header { width: 100%; padding: 30px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; text-align: left; outline: none; }
.offer-acc-header h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--dark); margin: 0; transition: color 0.3s; }
.offer-acc-header:hover h3 { color: var(--gold); }
.acc-icon { width: 20px; height: 20px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: var(--gold); transition: transform 0.4s ease; }
.acc-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.offer-acc-item.open .acc-icon::after { transform: rotate(90deg) scale(0); }
.offer-acc-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.offer-acc-item.open .offer-acc-content { grid-template-rows: 1fr; }
.offer-acc-inner { overflow: hidden; }
.offer-desc { padding: 0 30px 30px; font-size: 1rem; color: #555; line-height: 1.8; }
.offer-desc p { margin-bottom: 15px; }

/* Zagnieżdżone Etapy - Bloki i Kaskadowa Animacja */
.stages-wrapper { background: #fafafa; border-top: 1px solid #eee; padding: 0; border-radius: 0 0 12px 12px; }
.stages-toggle-btn { width: 100%; padding: 20px 30px; background: none; border: none; cursor: pointer; text-align: left; font-weight: 600; color: var(--dark); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; display: flex; justify-content: space-between; outline: none; }
.stages-toggle-btn:hover { color: var(--gold); }
.arrow-down { transition: transform 0.4s ease; }

.stages-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.stages-wrapper.stages-open .stages-content { grid-template-rows: 1fr; }

/* Kontener etapów używa Flexboxa z przerwami (gap) */
.stages-inner { overflow: hidden; padding: 0 30px 30px; display: flex; flex-direction: column; gap: 15px; }

/* Każdy etap jako luksusowy, osobny blok */
.stages-inner > * { 
    background: #ffffff; 
    border: 1px solid #eaeaea; 
    border-left: 4px solid var(--gold); /* Złoty akcent premium po lewej */
    padding: 20px 25px; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    margin: 0; 
    color: #555; 
    line-height: 1.7; 
    font-size: 0.95rem;
    
    /* Przygotowanie pod animację - domyślnie ukryte i przesunięte w dół */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stages-inner strong { color: var(--dark); font-weight: 600; }

/* Wywołanie kaskadowej animacji przy otwarciu akordeonu */
.stages-wrapper.stages-open .stages-inner > * { opacity: 1; transform: translateY(0); }

/* Delay dla każdego kolejnego kafelka (magia wjeżdżania jeden po drugim) */
.stages-wrapper.stages-open .stages-inner > *:nth-child(1) { transition-delay: 0.1s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(2) { transition-delay: 0.2s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(3) { transition-delay: 0.3s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(4) { transition-delay: 0.4s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(5) { transition-delay: 0.5s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(6) { transition-delay: 0.6s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(7) { transition-delay: 0.7s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(8) { transition-delay: 0.8s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(9) { transition-delay: 0.9s; }
.stages-wrapper.stages-open .stages-inner > *:nth-child(10) { transition-delay: 1.0s; }

/* --- WYCENA --- */
#wycena { background: white; }
.kontakt-wrapper { display: flex; gap: 50px; max-width: 1200px; margin: 0 auto; background: white; padding: 50px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border-radius: 12px; }
.kontakt-info { flex: 1; }
form { flex: 1.5; display: flex; flex-direction: column; }
input, textarea { padding: 15px; margin-bottom: 15px; border: 1px solid #eee; background: #fafafa; border-radius: 8px; outline: none; }
form button { padding: 18px; background: var(--dark); color: white; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; border-radius: 50px; font-weight: 600; }

/* --- FAQ (PREMIUM AKORDEON) --- */
.faq-accordion-container { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-acc-item { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eaeaea; transition: border-color 0.3s ease; }
.faq-acc-item.open { border-color: var(--gold); }

.faq-acc-header { width: 100%; padding: 25px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; text-align: left; outline: none; }
.faq-acc-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin: 0; transition: color 0.3s; font-family: 'Poppins', sans-serif; }
.faq-acc-header:hover h3 { color: var(--gold); }

/* Podpięcie animacji ikony z sekcji Oferty pod FAQ */
.faq-acc-item.open .acc-icon::after { transform: rotate(90deg) scale(0); }

/* CSS Grid Animacja (Zero JS do wysokości) */
.faq-acc-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-acc-item.open .faq-acc-content { grid-template-rows: 1fr; }
.faq-acc-inner { overflow: hidden; }

.faq-desc { padding: 0 25px 25px; font-size: 1rem; color: #555; line-height: 1.7; border-top: 1px solid #f0f0f0; margin-top: 10px; padding-top: 20px; }
.faq-desc p { margin-bottom: 15px; }

/* --- CZARNA STOPKA --- */
.main-footer { background: #050505 !important; color: #f4f4f4; padding-top: 60px; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; align-items: flex-start; }
.footer-col p { color: #aaaaaa; font-size: 0.95rem; margin-bottom: 12px; display: block; }
.footer-col p a { display: inline; color: inherit; margin: 0; transition: 0.3s; text-decoration: none; }
.footer-col p a:hover, .footer-col a:hover { color: var(--gold); }
.map-col iframe { width: 100%; height: 200px; border: 0; border-radius: 8px; opacity: 0.8; transition: 0.3s; }
.map-col iframe:hover { opacity: 1; }
.aion-footer { background: #000; padding: 20px; text-align: center; border-top: 1px solid #1a1a1a; }

/* --- IKONY SOCIAL MEDIA --- */
.social-icons-wrapper { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.social-icons-wrapper a { color: #aaaaaa; transition: 0.3s ease; display: inline-flex; align-items: center; justify-content: center; }
.social-icons-wrapper a:hover { color: var(--gold); transform: translateY(-4px); }
.social-icons-wrapper svg { width: 24px; height: 24px; }

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1100px) {
    .testimonial-card { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 768px) {
    .nav-container { justify-content: flex-start; gap: 20px; padding-right: 60px; }
    .logo img { max-height: 40px; }
    .mobile-menu-toggle { display: flex; }
    nav ul { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(255, 255, 255, 0.98); flex-direction: column; justify-content: center; }
    nav ul.active { right: 0; }
    nav ul li { margin: 15px 0; }
    
    .about-wrapper, .kontakt-wrapper, .footer-grid { flex-direction: column; text-align: center; }
    .footer-col { align-items: center; }
    .footer-col img { align-self: center !important; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .testimonial-card { flex: 0 0 85%; scroll-snap-align: center; }
    .portfolio-container { flex-direction: column; height: auto; gap: 20px; }
    .project-card { height: 350px; flex: none !important; }
    .project-info { opacity: 1; transform: translateY(0); }
}
/* --- SINGLE POST (FORMATOWANIE I LIGHTBOX) --- */

/* Odstępy w tekście (żeby nie trzeba było robić pustych bloków) */
.post-content p { margin-bottom: 1.8rem; line-height: 1.8; color: #444; font-size: 1.05rem; }
.post-content h2 { margin: 2.5rem 0 1.5rem; color: var(--dark); font-family: 'Playfair Display', serif; font-size: 2rem; }
.post-content h3 { margin: 2rem 0 1rem; color: var(--dark); font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.post-content ul, .post-content ol { margin-bottom: 1.8rem; padding-left: 20px; line-height: 1.8; color: #444; }

/* Natywna Galeria WordPress (Gutenberg) - Design Aion Media */
.wp-block-gallery { gap: 15px; margin-bottom: 2rem; }
.wp-block-gallery .wp-block-image img, 
.gallery-item img { 
    border-radius: 8px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); 
    cursor: zoom-in; width: 100%; height: auto; object-fit: cover; 
}
.wp-block-gallery .wp-block-image img:hover, 
.gallery-item img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Aion Media Vanilla JS Lightbox */
#aion-lightbox { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(10, 10, 10, 0.95); z-index: 9999; 
    display: flex; justify-content: center; align-items: center; 
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; 
}
#aion-lightbox.active { opacity: 1; pointer-events: all; }
#aion-lightbox img { 
    max-width: 90%; max-height: 90vh; border-radius: 6px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4); 
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); 
}
#aion-lightbox.active img { transform: scale(1); }
#aion-lightbox .close-lb { 
    position: absolute; top: 30px; right: 40px; color: white; 
    font-size: 45px; cursor: pointer; line-height: 1; transition: color 0.3s; 
}
#aion-lightbox .close-lb:hover { color: var(--gold); }
/* Strzałki nawigacyjne Lightboxa */
#aion-lightbox .prev-lb, #aion-lightbox .next-lb { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    color: white; font-size: 50px; cursor: pointer; padding: 20px; 
    transition: color 0.3s; user-select: none; z-index: 10000;
}
#aion-lightbox .prev-lb { left: 5%; }
#aion-lightbox .next-lb { right: 5%; }
#aion-lightbox .prev-lb:hover, #aion-lightbox .next-lb:hover { color: var(--gold); }

/* Płynne przejście przy zmianie zdjęcia */
#aion-lightbox img { transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
#aion-lightbox img.fade-out { opacity: 0 !important; transform: scale(0.98) !important; }