/* ================================================================
   MECENASPORADA.PL - MAIN STYLESHEET
   FILE 2: css/styles.css
   Professional Legal Platform Styling
   ================================================================ */

/* Tesla-style CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-text: #171a20;
    --secondary-text: #5c5e62;
    --accent-blue: #3e6ae1;
    --surface-white: #ffffff;
    --surface-light: #f4f4f4;
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-text);
    background: var(--surface-white);
    /* Bardziej widoczne tło na całą stronę */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('https://mecenasporada.pl/photo/podklad_2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-text);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.nav-contact {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-contact:hover {
    background: rgba(62, 106, 225, 0.1);
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
    height: 35vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    background: transparent;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    padding: 0 24px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    min-width: 160px;
}

.btn-primary {
    background: var(--primary-text);
    color: white;
}

.btn-primary:hover {
    background: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-text);
    border: 3px solid var(--primary-text);
}

.btn-secondary:hover {
    background: var(--primary-text);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-text);
    border: 1px solid var(--primary-text);
    padding: 10px 20px;
    font-size: 12px;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-solid {
    background: var(--accent-blue);
    color: white;
    border: 1px solid var(--accent-blue);
    padding: 10px 20px;
    font-size: 12px;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background: var(--primary-text);
    color: white;
}

.btn-solid:hover {
    background: #2c5ce6;
    border-color: #2c5ce6;
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */

.products {
    padding: 40px 20px;
    background: transparent;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

.product-card {
    position: relative;
    background: white;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-decoration: none;
    color: var(--primary-text);
    transition: var(--transition);
    overflow: hidden;
    min-height: 260px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.70) 100%);
    z-index: 1;
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.70) 100%);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    z-index: 10;
}

.product-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 190px;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    color: var(--primary-text);
}

.product-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--secondary-text);
}

.product-features {
    list-style: none;
    margin-bottom: 14px;
    font-size: 11px;
    color: var(--secondary-text);
    text-align: left;
}

.product-features li {
    margin-bottom: 3px;
    position: relative;
    padding-left: 12px;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.product-cta {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-direction: column;
}

/* Product card backgrounds */
.product-rozwod {
    background-image: url('https://mecenasporada.pl/photo/rozwod.png');
}

.product-upadlosc {
    background-image: url('https://mecenasporada.pl/photo/upadlosc.png');
}

.product-dzieci {
    background-image: url('https://mecenasporada.pl/photo/opieka.png');
}

.product-alimenty {
    background-image: url('../photo/alimenty.png');
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    background: rgba(23, 26, 32, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 40px 0 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-contact {
    margin-bottom: 24px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 20px;
    font-size: 14px;
}

.footer-contact a:hover {
    color: white;
}

.footer-legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 12px;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================================
   COOKIE BANNER
   ================================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(23, 26, 32, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.cookie-text a {
    color: var(--accent-blue);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent-blue);
    color: white;
}

.cookie-btn-accept:hover {
    background: #2c5ce6;
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 26, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.loading-text {
    font-size: 16px;
    font-weight: 400;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 700px;
        gap: 20px;
    }

    .product-card {
        min-height: 350px;
    }

    .product-content {
        max-width: 280px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-subtitle {
        font-size: 15px;
    }

    .product-features {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .nav-content {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        min-height: 300px;
        padding: 20px 0;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .products {
        padding: 20px 16px;
    }

    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        max-width: 400px;
    }

    .product-card {
        min-height: 300px;
        padding: 30px 20px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-subtitle {
        font-size: 15px;
    }

    .product-cta {
        flex-direction: column;
        gap: 8px;
    }

    .btn-outline,
    .btn-solid {
        width: 100%;
        max-width: 180px;
    }
    
    .footer-content {
        padding: 0 16px;
    }
    
    .footer-contact a {
        display: block;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-height: 280px;
        padding: 25px 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-subtitle {
        font-size: 14px;
    }
    
    .product-features {
        font-size: 13px;
    }
}