/* ==========================================================================
   ZMIENNE KOLORYSTYCZNE
   ========================================================================== */
:root {
    --pastel-sage: #5a7d6c;
    --pastel-sage-dark: #3e5c4d;
    --pastel-rose: #f9ecec;
    --pastel-cream: #fdfaf7;
    --text-dark: #2d3436;
}

/* ==========================================================================
   BAZA I PRZEWIJANIE (SMOOTH SCROLL)
   ========================================================================== */
html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--pastel-cream);
    color: var(--text-dark);
    /* Te 3 linijki to twarda blokada przed "rozpychaniem" przez animacje */
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
}

/* Ukrywanie natywnych strzałek w sekcji FAQ (details) */
details summary::-webkit-details-marker { 
    display: none; 
}

/* ==========================================================================
   NAWIGACJA (GLASSMORPHISM)
   ========================================================================== */
.glass-nav {
    background: rgba(253, 250, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    z-index: 100; 
}

/* ==========================================================================
   PRZYCISKI I IKONY
   ========================================================================== */
.btn-call {
    background: var(--pastel-sage);
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-call:hover {
    background: var(--pastel-sage-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(90, 125, 108, 0.3);
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--pastel-sage);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.social-btn:hover {
    background: var(--pastel-sage);
    color: #fff;
    transform: translateY(-3px);
}

/* Przycisk powrotu do góry */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

#backToTop.show { 
    opacity: 1; 
    visibility: visible; 
}

/* ==========================================================================
   MENU MOBILNE I HAMBURGER
   ========================================================================== */
#mobileMenu {
    background-color: white;
    z-index: 200; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    position: fixed;
    inset: 0;
    top: 0;
    height: 100vh;
    /* ZMIANA Z 100vw na 100% - naprawia błąd na Androidzie/Firefoxie */
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#mobileMenu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

#hamburgerBtn {
    position: relative;
    z-index: 210;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--pastel-sage);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   ANIMACJA GŁÓWNEGO ZDJĘCIA (MORPHING)
   ========================================================================== */
.hero-img-container {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* ==========================================================================
   POPRAWKI RESPONSYWNOŚCI (RWD)
   ========================================================================== */
@media (max-width: 1024px) {
    .glass-nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ratunek dla ekstremalnie wąskich ekranów (np. stary iPhone, Firefox Mobile Narrow) */
@media (max-width: 375px) {
    .glass-nav a.text-md {
        font-size: 1.05rem; /* Zabezpieczenie nazwiska */
        white-space: nowrap;
        letter-spacing: -0.5px;
    }
    .btn-call {
        padding: 0.5rem 0.75rem !important;
        font-size: 11px !important;
    }
    .hamburger span {
        width: 20px; /* Nieco mniejszy hamburger */
    }
}