/* ===================================
   STYX - Częstochowskie Centrum Pogrzebowe
   Wspólne style dla całej strony
   =================================== */

/* Reset i Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Typography */
h1 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #330066;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: white;
}

.main-nav a.active {
    color: white;
    opacity: 1;
    border-bottom: 2px solid #330066;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #330066;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
}

.header-cta:hover {
    background: #220044;
    color: white;
}

.header-cta i {
    font-size: 1.1rem;
}

/* Social Icon */
.social-icon {
    display: flex;
    align-items: center;
}

.social-icon:hover {
    opacity: 1 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Content Sections */
.content-section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.dark {
    background: #000;
}

.content-section.gray {
    background: #111;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    max-width: 800px;
    margin: -2rem auto 3rem;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(51, 0, 102, 0.3);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(51, 0, 102, 0.1);
    border-color: #330066;
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 300;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 300;
}

.why-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.why-item p {
    color: #bbb;
    font-size: 0.95rem;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #330066;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #220044;
    color: white;
    transform: translateY(-2px);
}

.cta-button.outline {
    background: transparent;
    color: white;
    border: 2px solid #330066;
}

.cta-button.outline:hover {
    background: #330066;
    color: white;
}

.cta-section {
    text-align: center;
    padding: 80px 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 2rem 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-section p,
.footer-section a {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #330066;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .material-symbols-outlined {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item i {
    margin-top: 0.25rem;
    font-size: 1.1rem;
    color: white;
}

.contact-item strong {
    font-weight: 700;
}

.contact-item a[href^="tel"] {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.contact-item a[href^="mailto"] {
    color: white;
}

.contact-item a[href*="facebook"] {
    color: white;
}

.contact-item a[href*="facebook"]:hover {
    opacity: 1 !important;
    color: white;
}

.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.partner-logo {
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.footer-partners a:first-child .partner-logo {
    height: 12px;
}

.footer-partners a:last-child .partner-logo {
    height: 40px;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        padding: 2rem;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .social-icon {
        order: -1;
        margin-right: 1rem !important;
    }
    
    .header-cta {
        display: flex !important;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .content-section {
        padding: 60px 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .site-logo {
        height: 35px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .service-card,
    .why-item {
        padding: 1.5rem;
    }
    
    .service-card .material-symbols-outlined,
    .why-item .material-symbols-outlined {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .footer-partners {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}
