/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Polish Culinary Theme Colors */
    --primary-red: #c41e3a;
    --primary-white: #ffffff;
    --warm-cream: #faf7f2;
    --golden-yellow: #ffd700;
    --deep-brown: #8b4513;
    --forest-green: #228b22;
    --warm-orange: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-light: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --gradient-warm: linear-gradient(135deg, var(--warm-cream) 0%, var(--golden-yellow) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-red) 0%, var(--warm-orange) 100%);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--primary-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-red);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-logo .logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-red);
    color: var(--primary-white);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--primary-white);
}

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--deep-brown);
    color: var(--primary-white);
}

.btn-secondary:hover {
    background: #704214;
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--primary-white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--primary-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 300px;
    opacity: 0.1;
    z-index: 1;
}

/* Page Header */
.page-header {
    background: var(--gradient-warm);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Sections */
.features,
.popular-courses,
.about-content,
.services-overview,
.course-categories,
.featured-courses,
.learning-modules,
.testimonials-main,
.success-stories,
.blog-articles,
.blog-categories,
.contact-content {
    padding: 80px 0;
}

.features {
    background: var(--primary-white);
}

.features h2,
.popular-courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Grid Layouts */
.features-grid,
.courses-grid,
.categories-grid,
.testimonials-grid,
.articles-grid,
.team-grid,
.values-grid,
.modules-grid,
.stories-grid,
.stats-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */
.feature-card,
.course-card,
.category-card,
.testimonial-card,
.article-card,
.team-member,
.value-card,
.module-card,
.story-card,
.stat-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-card:hover,
.course-card:hover,
.category-card:hover,
.testimonial-card:hover,
.article-card:hover,
.value-card:hover,
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon,
.value-icon,
.contact-icon,
.testimonial-avatar,
.story-image,
.stat-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.feature-icon img,
.value-icon img,
.contact-icon img,
.testimonial-avatar img,
.story-image img,
.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Course Cards */
.course-card.featured {
    border: 3px solid var(--golden-yellow);
    position: relative;
}

.course-card.featured::before {
    content: "POLECANY";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--golden-yellow);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.course-image,
.article-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.course-image img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-features {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.course-features span {
    background: var(--warm-cream);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.course-price,
.category-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
    margin: 1rem 0;
}

/* About Page Specific */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img,
.services-image img,
.blog-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Testimonials */
.testimonials-stats {
    background: var(--primary-white);
    padding: 60px 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-info {
    margin-left: 1rem;
}

.testimonial-info h3 {
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: var(--golden-yellow);
    font-size: 1.2rem;
}

.testimonial-card.featured {
    border-left: 5px solid var(--primary-red);
}

.testimonials-cta {
    background: var(--gradient-warm);
    padding: 80px 0;
    text-align: center;
}

/* Blog */
.blog-intro {
    padding: 60px 0;
    background: var(--primary-white);
}

.blog-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date,
.article-category,
.article-author {
    background: var(--warm-cream);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.article-category {
    background: var(--primary-red);
    color: var(--primary-white);
}

.blog-categories {
    background: var(--primary-white);
    padding: 60px 0;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-red);
    background: var(--warm-cream);
    border-radius: 5px;
}

.blog-newsletter {
    background: var(--gradient-hero);
    color: var(--primary-white);
    padding: 60px 0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group input {
    margin-right: 0.5rem;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

/* Thanks Page */
.thanks-section {
    padding: 120px 0 80px;
    text-align: center;
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.thanks-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.next-steps,
.thanks-actions {
    margin: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-item {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.action-card {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.contact-info-box {
    background: var(--warm-cream);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.contact-details {
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* Blog Article */
.blog-article {
    padding: 120px 0 0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    margin-bottom: 3rem;
}

.article-breadcrumb {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.article-breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 2rem 0;
}

.article-featured-image {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 2rem 0 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-tip,
.article-warning {
    background: var(--warm-cream);
    border-left: 4px solid var(--forest-green);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.article-warning {
    border-left-color: var(--warm-orange);
    background: #fff8f0;
}

.article-tip h4,
.article-warning h4 {
    margin-bottom: 1rem;
    color: var(--forest-green);
}

.article-warning h4 {
    color: var(--warm-orange);
}

.article-cta {
    background: var(--gradient-warm);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 20px;
    border-top: 1px solid var(--border-light);
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Legal Pages */
.legal-content {
    padding: 120px 0 80px;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
}

.legal-meta {
    background: var(--warm-cream);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.legal-document h2,
.legal-document h3,
.legal-document h4 {
    color: var(--primary-red);
    margin: 2rem 0 1rem;
}

.legal-document ul,
.legal-document ol {
    margin: 1rem 0 1rem 2rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
}

.legal-footer {
    background: var(--warm-cream);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 3rem;
    text-align: center;
}

/* Cookie Policy Tables */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.cookie-table th {
    background: var(--primary-red);
    color: var(--primary-white);
    font-weight: 600;
}

.cookie-preferences {
    background: var(--warm-cream);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

blockquote {
    background: var(--warm-cream);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 5px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-white);
    border-top: 3px solid var(--primary-red);
    box-shadow: var(--shadow-medium);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--primary-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content,
    .about-intro,
    .blog-intro-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .features-grid,
    .courses-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .article-navigation {
        flex-direction: column;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .footer {
        display: none;
    }

    .hero,
    .page-header {
        padding: 20px 0;
    }

    body {
        background: white;
        color: black;
    }

    .btn {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #dc143c;
        --text-dark: #000000;
        --text-light: #333333;
        --border-light: #666666;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
