/* 
    Magazyn do wynajęcia Kraków - Style CSS
    Autor: [Twoje dane]
    Data: 2025
*/

/* General Styles */
:root {
    --primary-color: #2b5876;
    --secondary-color: #4e4376;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #495057;
    --border-color: #dee2e6;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
	max-width: 650px;
	height: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.section-header p {
    font-size: 18px;
    color: #6c757d;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Placeholder for images */
.placeholder-image {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 5px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #888;
}

.placeholder-image i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #aaa;
}

.placeholder-map {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #888;
}

.placeholder-map i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #aaa;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.9), rgba(78, 67, 118, 0.9));
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0 15px;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.9), rgba(78, 67, 118, 0.9)), url('') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 100px;
}

.hero-content {
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image .placeholder-image {
    height: 350px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-image .placeholder-image i {
    color: #fff;
}

/* Oferta Section */
.oferta-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.oferta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.oferta-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.oferta-icon i {
    font-size: 28px;
    color: #fff;
}

.oferta-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.oferta-box p {
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    padding: 8px 0;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.btn-read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--primary-color);
}

.btn-read-more:hover::after {
    width: 100%;
}

/* Why Us Section */
.why-us-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.why-us-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.why-us-item .icon i {
    font-size: 24px;
    color: #fff;
}

.why-us-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
}

.gallery-item .placeholder-image {
    height: 250px;
    border-radius: 10px 10px 0 0;
    border: none;
}

.gallery-info {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

.gallery-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-info p {
    color: #6c757d;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.9), rgba(78, 67, 118, 0.9)), url('') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
}

.cta h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Contact Section */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
}

.contact-item .icon i {
    font-size: 24px;
    color: #fff;
}

.contact-item .content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-form .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 150px;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    padding: 70px 0 0;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget p {
    color: #aaa;
    margin-bottom: 25px;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    height: 50px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    padding: 10px 20px;
    color: #fff;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: #fff;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 30px;
}

.copyright p {
    margin-bottom: 0;
    color: #aaa;
}

.copyright a {
    color: #fff;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--box-shadow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero {
        height: auto;
        padding-top: 80px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item .icon {
        margin: 0 auto 15px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 26px;
    }
    
    .oferta-box, 
    .why-us-item, 
    .gallery-item {
        margin-bottom: 20px;
    }
}