/* 
 * Maślana Lepioszka - Style główne
 * Przewodnik po zabytkowej architekturze Polski
 */

/* ======= RESET & PODSTAWY ======= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Podstawowa paleta kolorów */
    --primary-color: #4a6da7;       /* niebieski - główny kolor */
    --primary-dark: #324c7d;        /* ciemniejszy niebieski */
    --primary-light: #7b96c2;       /* jaśniejszy niebieski */
    
    --secondary-color: #e74c3c;     /* czerwony - akcent */
    --secondary-dark: #c0392b;      /* ciemniejszy czerwony */
    --secondary-light: #eb8b81;     /* jaśniejszy czerwony */
    
    --text-color: #333333;          /* podstawowy kolor tekstu */
    --text-light: #666666;          /* jaśniejszy kolor tekstu */
    --light-gray: #f0f3f7;          /* jasny szary do tła */
    --medium-gray: #d5d9e2;         /* średni szary do obramowań */
    --white: #ffffff;               /* biały */
    --black: #1a1a1a;               /* prawie czarny */
    
    /* Typografia */
    --body-font: 'Lato', 'Roboto', 'Arial', sans-serif;
    --heading-font: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    
    /* Wymiary */
    --container-width: 1200px;
    --header-height: 80px;
    --footer-height: auto;
    --border-radius: 6px;
    
    /* Cienie */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Przejścia */
    --transition-speed: 0.3s;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 2rem;
}

/* ======= TYPOGRAFIA ======= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* ======= PRZYCISKI ======= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

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

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

/* ======= HEADER & NAWIGACJA ======= */
.main-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    position: relative;
    font-weight: 600;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-color);
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle span:first-child {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:last-child {
    top: 20px;
}

.mobile-menu-open .mobile-menu-toggle span:first-child {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg);
    top: 10px;
}

/* ======= BANNER SECTION ======= */
.banner {
    position: relative;
    background-color: var(--light-gray);
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* ======= SEKCJA O NAS ======= */
.about-section {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ======= SEKCJA USŁUGI ======= */
.services-section {
    background-color: var(--light-gray);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ======= SEKCJA WYRÓŻNIONE OBIEKTY ======= */
.featured-section {
    background-color: var(--white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: transform var(--transition-speed) ease;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ======= SEKCJA REKOMENDACJE ======= */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.prev-btn, .next-btn {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.prev-btn::before, .next-btn::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transition: border-color var(--transition-speed) ease;
}

.prev-btn:hover::before, .next-btn:hover::before {
    border-color: var(--white);
}

.prev-btn::before {
    transform: rotate(-135deg);
}

.next-btn::before {
    transform: rotate(45deg);
}

/* ======= SEKCJA BLOG ======= */
.blog-preview-section {
    background-color: var(--white);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-post-image {
    height: 200px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.blog-post-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.25rem;
    transition: margin-left var(--transition-speed) ease;
}

.read-more:hover::after {
    margin-left: 0.5rem;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ======= SEKCJA NEWSLETTER ======= */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white);
}

.newsletter-form {
    margin-top: 2rem;
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.form-checkbox input {
    margin-top: 0.3rem;
}

.form-checkbox a {
    color: var(--white);
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: var(--light-gray);
}

/* ======= FOOTER ======= */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-about {
    margin-bottom: 1.5rem;
}

.footer-about img {
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-contact img {
    margin-top: 0.3rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: background-color var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.copyright {
    margin-bottom: 1rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--white);
    transition: color var(--transition-speed) ease;
}

.legal-links a:hover {
    color: var(--primary-light);
}

/* ======= COOKIE CONSENT ======= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--black);
    color: var(--white);
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.cookie-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--white);
}

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

/* ======= COOKIE SETTINGS ======= */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1010;
    display: none;
    justify-content: center;
    align-items: center;
}

.cookie-settings-container {
    background-color: var(--white);
    max-width: 600px;
    width: 90%;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-item h4 {
    margin-bottom: 0.25rem;
}

.cookie-setting-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: var(--transition-speed);
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: var(--transition-speed);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.cookie-settings-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ======= PAGE TITLE ======= */
.page-title {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.page-title h1 {
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ======= CONTACT PAGE ======= */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info, .contact-form-container {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
}

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

.contact-icon {
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.contact-details h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.contact-hours, .social-contact {
    margin-top: 2rem;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
    display: block;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--body-font);
}

.contact-form textarea {
    resize: vertical;
}

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

.form-submit {
    margin-top: 1.5rem;
}

.map-section {
    background-color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.map-container {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-svg {
    width: 100%;
    height: auto;
}

.map-note {
    font-style: italic;
    color: var(--text-light);
}

/* ======= THANK YOU PAGE ======= */
.thank-you-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 5rem 0;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.thank-you-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ======= LEGAL PAGES ======= */
.legal-content {
    padding: 4rem 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-update {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    margin: 1.5rem 0 1rem;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

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

/* ======= RESPONSYWNOŚĆ ======= */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .cookie-container {
        flex-direction: column;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-speed) ease;
        z-index: 1000;
    }
    
    .mobile-menu-open .nav-list {
        right: 0;
    }
    
    .nav-list li {
        margin: 0 0 1.5rem;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .services-grid, .featured-grid, .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .thank-you-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .banner {
        min-height: 400px;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input, .newsletter-form button {
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .form-group input {
        margin-bottom: 1rem;
    }
    
    .contact-info, .contact-form-container {
        padding: 1.5rem;
    }
}
