/* 
  Main Stylesheet
  Author: Travyanaya-Gorchitsa
  Description: Main CSS file for the Poland Guide website
*/

/* ====================== GLOBAL STYLES ====================== */
:root {
    --primary-color: #d81e27;
    --primary-dark: #b51922;
    --primary-light: #f9dbdd;
    --secondary-color: #091d5a;
    --secondary-light: #243b8a;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --footer-bg: #091d5a;
    --footer-text: #ffffff;
    --success: #28a745;
    
    --container-width: 1200px;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

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

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

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

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

section {
    padding: 70px 0;
}

/* ====================== HEADER ====================== */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ====================== BANNER ====================== */
.banner {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    flex: 1;
    padding-right: 30px;
}

.banner-image {
    flex: 1;
    text-align: center;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* ====================== ABOUT SECTION ====================== */
.o-nas .content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.o-nas .image {
    flex: 1;
}

.o-nas .text {
    flex: 1;
}

/* ====================== SERVICES SECTION ====================== */
.uslugi {
    background-color: var(--light-gray);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    height: 70px;
    margin: 0 auto;
}

/* ====================== WHY US SECTION ====================== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.reason-card {
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
}

.reason-card:hover {
    transform: scale(1.03);
}

/* ====================== POPULAR PLACES SECTION ====================== */
.popularne-miejsca {
    background-color: var(--light-gray);
}

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

.place-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.place-card:hover {
    transform: translateY(-5px);
}

/* ====================== TESTIMONIALS SECTION ====================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ====================== BLOG PREVIEW SECTION ====================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

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

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

.blog-content {
    padding: 20px;
}

.blog-content h3, .blog-content h4 {
    margin-bottom: 10px;
}

.blog-content p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.blog-button {
    text-align: center;
    margin-top: 40px;
}

.blog-card.small .blog-image {
    height: 150px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

/* ====================== SUBSCRIPTION SECTION ====================== */
.subskrypcja {
    background-color: var(--primary-light);
    text-align: center;
}

.subskrypcja p {
    max-width: 600px;
    margin: 0 auto 30px;
}

form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 25px;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

/* ====================== CONTACT SECTION ====================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.map {
    flex: 1;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    margin-right: 15px;
}

.contact-icon img {
    width: 40px;
}

.social-media {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

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

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ====================== FOOTER ====================== */
footer {
    background-color: #000;
    color: var(--footer-text);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-legal ul li a {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    opacity: 1;
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ====================== THANKS PAGE ====================== */
.thanks-section {
    text-align: center;
    padding: 100px 0;
}

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

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

.thanks-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ====================== LEGAL PAGES ====================== */
.legal-page {
    padding: 70px 0;
}

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

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-content ul, .legal-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content ul li, .legal-content ol li {
    margin-bottom: 10px;
}

/* ====================== BLOG PAGES ====================== */
.blog-hero {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.blog-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.blog-main {
    padding: 70px 0;
}

/* ====================== ARTICLE PAGES ====================== */
.article {
    padding: 70px 0;
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.article-image {
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

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

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

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content ul li, .article-content ol li {
    margin-bottom: 10px;
}

.article-footer {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.article-share {
    display: flex;
    align-items: center;
}

.article-share span {
    margin-right: 15px;
    font-weight: 500;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-gray);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.share-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    margin-bottom: 30px;
}

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

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ====================== RESPONSIVE STYLES ====================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .banner {
        padding: 70px 0;
    }
    
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .o-nas .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .map {
        margin-top: 30px;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-active ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .mobile-menu-active ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .banner h1 {
        font-size: 2.2rem;
    }
    
    .services-grid, .reasons-grid, .places-grid, .testimonials-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-icon img {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}
