/* --- 1. IMPORT CZCIONEK I ZMIENNE --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&family=Great+Vibes&display=swap');

:root {
  --color-brand-pink: #EBCBCB;
  --color-brand-dark: #1a1a1a;
  --color-brand-gold: #D4AF37;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F8F0C6 50%, #D4AF37 100%);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- 2. RESET I BAZA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: #FAFAF9;
  color: var(--color-brand-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

/* --- 3. TYPOGRAFIA --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Animacja dla słów w nagłówku */
h1 span.word-anim {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordReveal 0.8s var(--ease-out-expo) forwards;
}

@keyframes wordReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Opóźnienia dla każdego słowa */
h1 span:nth-child(1) { animation-delay: 0.2s; }
h1 span:nth-child(2) { animation-delay: 0.4s; }
h1 span:nth-child(3) { animation-delay: 0.6s; }

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-gold {
  color: var(--color-brand-gold);
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* --- 4. NAWIGACJA (NAVBAR) --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    transition: all 0.4s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styl LOGO TEKSTOWEGO */
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-brand-dark);
    text-decoration: none;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--color-brand-gold);
}

.header-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-brand-dark);
    margin: 5px 0;
}

/* --- 5. SEKCJA HERO (Główna) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.booksy-badge {
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.img-editorial {
    width: 100%;
    max-width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 0 100px 0 100px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

/* --- 6. SEKCJA O MNIE --- */
.about-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-features {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-features li {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-brand-dark);
    font-weight: 500;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--color-brand-gold);
    margin-top: 2rem;
}

/* --- 7. SEKCJA OFERTA (Grid) --- */
.offer-section {
    padding: 6rem 5%;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    background: #FAFAF9;
    padding: 2.5rem;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand-gold);
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* --- 8. PRZYCISK SHINE (Złoty) --- */
.btn-shine {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.btn-shine:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* --- 9. GALERIA (Grid & Video) --- */
.gallery-section {
    padding: 6rem 5%;
    background: #ffffff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-header p {
    color: #888;
    margin-top: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 0 40px 0 40px; 
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* --- 10. SEKCJA SCIENCE (BAZA WIEDZY SEO) --- */
.science-section {
    padding: 6rem 5%;
    background: #fff;
    border-top: 1px solid #eee;
}

.science-container {
    max-width: 1000px;
    margin: 0 auto;
}

.science-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #666;
    font-size: 0.95rem;
}

.science-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.science-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #FAFAF9;
}

.science-item:hover {
    border-color: var(--color-brand-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.science-item summary {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    position: relative;
}

.science-item summary::-webkit-details-marker {
    display: none;
}

.science-item h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    font-family: var(--font-serif);
    color: var(--color-brand-dark);
}

.science-item .icon {
    font-size: 1.5rem;
}

.science-item .plus {
    font-size: 1.5rem;
    color: var(--color-brand-gold);
    transition: transform 0.3s ease;
}

/* Animacja otwierania harmonijki */
.science-item[open] .plus {
    transform: rotate(45deg);
}

.science-content {
    padding: 0 1.5rem 1.5rem 4rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #eee;
    animation: slideDown 0.4s ease-out;
}

.science-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-brand-dark);
    font-size: 1rem;
    font-weight: 600;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .science-content {
        padding: 0 1rem 1.5rem 1rem;
    }
}

/* --- 11. SEKCJA FAQ --- */
.faq-section {
    padding: 6rem 5%;
    background: #FAFAF9;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-brand-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
    background: #fff;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.arrow {
    transition: transform 0.3s ease;
    color: var(--color-brand-gold);
}

/* --- 12. KONTAKT, MAPA, STOPKA I SOCIAL MEDIA --- */
.contact-section {
    display: flex;
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 5%;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    background: #fff;
    padding: 3rem;
    border-left: 5px solid var(--color-brand-gold);
}

.phone-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-brand-gold);
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--color-brand-dark);
}

.hours-list {
    margin-top: 2.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.hours-list h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #888;
}

.hours-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 0.2rem;
}

.hours-list li span:first-child {
    font-weight: 500;
    color: var(--color-brand-dark);
}

.hours-list .closed {
    color: var(--color-brand-pink);
    font-weight: 600;
}

.contact-map {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-filter {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.map-filter:hover {
    filter: grayscale(0%);
}

.access-tip {
    background: #fff;
    border-left: 4px solid var(--color-brand-gold);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 0 20px 20px 0;
}

.tip-icon {
    font-size: 1.5rem;
    background: #FAFAF9;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tip-content h4 {
    font-family: var(--font-serif);
    color: var(--color-brand-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* STOPKA I SOCIALE */
footer {
    background: var(--color-brand-dark);
    color: #888;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--color-brand-gold);
    font-weight: 500;
    position: relative;
}

.footer-socials a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-socials a:hover::after {
    width: 100%;
}

.footer-socials a:hover {
    color: #fff;
}

.separator {
    color: #444;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* SOCIALE W MENU MOBILNYM */
.mobile-socials {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.mobile-socials a {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--color-brand-dark) !important;
}

/* --- 13. COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.5rem 5%;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-top: 2px solid var(--color-brand-gold);
    transform: translateY(100%); /* Domyślnie schowany */
    transition: transform 0.5s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.85rem;
    color: #555;
    max-width: 800px;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner a {
    color: var(--color-brand-dark);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
}

/* --- 14. MENU MOBILNE (Boczne) --- */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-brand-dark);
}

/* --- 15. RESPANSYWNOŚĆ --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    
    .nav-links, .header-btn { display: none; }
    .hamburger { display: block; }
    
    .nav-logo { font-size: 0.95rem; }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image { justify-content: center; width: 100%; }
    .img-editorial { height: 400px; }

    .about-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .contact-section {
        flex-direction: column;
    }
}

/* --- 16. EFEKTY (Ziarno i Animacje wejścia) --- */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Klasy pomocnicze do JS (Fade In) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}