/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

/* Base Styles & Variables */
:root {
    --primary: #DC143C; /* Polish flag red */
    --secondary: #F0F0F0; /* Light off-white (flag white) */
    --accent: #213A8F; /* Polish design blue */
    --dark: #2C3E50;
    --light: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--secondary);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

li::before {
    content: '★';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
}

/* Header Styles */
header {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, transparent 25px, var(--secondary) 0) top left;
    background-size: 50px 50px;
    background-repeat: repeat-x;
}

header h1 {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient);
    color: var(--light);
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::after {
    width: 300%;
    height: 300%;
}

/* Section Styles */
section {
    background-color: var(--light);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Products Section */
#products ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.5rem;
    margin-bottom: 2.5rem;
}

#products li {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    padding-left: 0;
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

#products li::before {
    display: none;
}

#products li:hover {
    transform: translateY(-3px);
    background-color: var(--light);
}

/* Article Styling */
article {
    position: relative;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: rgba(33, 58, 143, 0.05);
    border-left: 4px solid var(--accent);
}

article h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

article p:last-child {
    margin-bottom: 0;
}

/* Form Section */
#form {
    background: var(--gradient);
    color: var(--light);
    text-align: center;
}

#form h2 {
    color: var(--light);
}

#form h2::after {
    background: var(--light);
    left: 50%;
    transform: translateX(-50%);
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

input[type="email"] {
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

button[type="submit"] {
    padding: 15px;
    background-color: var(--dark);
    color: var(--light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    background-color: var(--light);
    color: var(--dark);
}

/* Specialists Section */
#specialists ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.5rem;
}

#specialists li {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    padding-left: 0;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

#specialists li::before {
    display: none;
}

#specialists li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

#specialists li:hover {
    transform: translateY(-3px);
}

#specialists li:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Reviews Section */
#reviews ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.5rem;
}

#reviews li {
    position: relative;
    padding: 2rem;
    padding-left: 2rem;
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#reviews li::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
    opacity: 0.2;
}

#reviews li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Contacts Section */
#contacts {
    padding-bottom: 0;
}

#contacts p {
    margin-bottom: 1.5rem;
}

#contacts iframe {
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    header {
        min-height: 400px;
        padding: 2rem 1rem;
    }
    
    section {
        padding: 2rem 1.5rem;
    }
    
    #products ul, 
    #specialists ul, 
    #reviews ul {
        grid-template-columns: 1fr;
    }
    
    form {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    header {
        min-height: 350px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem 1rem;
    }
}

/* Animation Elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.6s; }
section:nth-child(5) { animation-delay: 0.8s; }
section:nth-child(6) { animation-delay: 1s; }

/* Cookie notice styling for cookie.php */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: var(--light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-notice button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-notice button:hover {
    background-color: var(--accent);
}