/* 
   MIRAS ENTERPRISES Homepage Styles
   Modern design inspired by atozserwisplus.pl while maintaining original color scheme
*/

/* ========== CSS Variables ========== */
:root {
    --primary-color: #0057b7;
    --primary-dark: #004494;
    --primary-light: rgba(0, 87, 183, 0.1);
    --accent-color: #ff9800;
    --accent-hover: #e68a00;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --text-white: #fff;
    --background-light: #f7f9fc;
    --background-white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --section-spacing: 80px 0;
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-medium);
    line-height: 1.6;
    background: var(--background-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    text-decoration: none;
    color: var(--text-white);
}

/* ========== Hero Slider Section ========== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.slide-content h2:after {
    display: none;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-white);
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
}

.slider-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* ========== Quick Info Section ========== */
.quick-info {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 30px 0;
    box-shadow: var(--shadow);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-box {
    padding: 20px;
}

.info-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.info-box h3 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-box p {
    font-size: 1rem;
    color: var(--text-white);
}

/* ========== About Us Section ========== */
.about-us {
    padding: var(--section-spacing);
    background: var(--background-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-text .subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-medium);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.feature span {
    color: var(--text-medium);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ========== Services Section ========== */
.services {
    padding: var(--section-spacing);
    background: var(--background-light);
    text-align: center;
}

.services h2 {
    color: var(--text-dark);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service {
    background: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    position: relative;
    z-index: 1;
}

.service:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service p {
    margin-bottom: 25px;
    color: var(--text-medium);
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-hover);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ========== Why Choose Us Section ========== */
.why-choose-us {
    padding: var(--section-spacing);
    background: var(--background-white);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-choose-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.why-choose-text h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.why-choose-text > p {
    margin-bottom: 30px;
    color: var(--text-medium);
}

.benefits {
    display: grid;
    gap: 25px;
}

.benefit {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.benefit-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.benefit-text h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.benefit-text p {
    color: var(--text-medium);
}

/* ========== Testimonials Section ========== */
.testimonials {
    padding: var(--section-spacing);
    background: var(--background-light);
    text-align: center;
}

.testimonials h2 {
    color: var(--text-dark);
}

.testimonial-slider {
    position: relative;
    margin-top: 50px;
    padding-bottom: 50px;
}

.testimonial {
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    background: var(--background-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

.quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-medium);
}

.client-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-info p {
    color: var(--text-light);
}

.testimonial-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ========== Contact CTA Section ========== */
.contact-cta {
    padding: 60px 0;
    background: linear-gradient(rgba(0, 87, 183, 0.9), rgba(0, 87, 183, 0.9)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--text-white);
}

.contact-cta h2 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.contact-cta h2:after {
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-white);
}

.contact-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-white);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phone-button {
    background: var(--background-white);
    color: var(--primary-color);
}

.phone-button:hover {
    background: var(--text-white);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

.contact-button {
    background: var(--accent-color);
    color: var(--text-white);
}

.contact-button:hover {
    color: var(--text-white);
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
    :root {
        --section-spacing: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .slide-content h1 {
        font-size: 2.4rem;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content, 
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image, 
    .why-choose-image {
        order: -1;
    }
    
    .hero-slider {
        height: 500px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 50px 0;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .service-list {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-content {
        padding: 30px;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 40px 0;
    }
    
    .container {
        width: 95%;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .info-box i {
        font-size: 2rem;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .benefit {
        flex-direction: column;
    }
    
    .benefit-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .testimonial-content {
        padding: 25px;
    }
}