/* Basic Reset and Typography */
:root {
    --primary-color: #4a6ebb;
    --primary-dark: #345799;
    --secondary-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-heading: 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex: 1;
}

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

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
}

.site-title h1 {
    margin-bottom: 0.2rem;
    font-size: 1.8rem;
}

.site-title p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.translated-title {
    font-size: 0.8rem;
    color: var(--gray-color);
    font-style: italic;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    text-decoration: none;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn, .btn-small, .btn-large {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover, .btn-small:hover, .btn-large:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

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

.spell-check {
    margin-left: 1rem;
    background-color: var(--secondary-color);
}

.spell-check:hover {
    background-color: #e05c5c;
}

/* Hero section */
.hero {
    background-color: var(--light-color);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('images/3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Features */
.features {
    padding: 5rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Latest Posts */
.latest-posts {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.post-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-color);
}

.post-card .btn-small {
    margin: 0 1.5rem 1.5rem;
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('images/2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

/* Blog Posts */
.blog-posts {
    padding: 4rem 0;
}

.blog-post {
    margin-bottom: 4rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 2rem;
}

.post-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Services */
.services {
    padding: 4rem 0;
}

.service-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.service-icon {
    color: var(--primary-color);
    margin-right: 2rem;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    margin-bottom: 1rem;
}

.service-content h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.service-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-content .price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn-large:hover {
    background-color: var(--light-color);
}

/* About Us */
.about-us {
    padding: 4rem 0;
}

.about-content {
    margin-bottom: 4rem;
}

.values-list {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.team-section h2, .team-section p {
    text-align: center;
}

.team-section > p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

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

.team-member {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
}

.testimonial {
    min-width: calc(33.333% - 1.333rem);
    scroll-snap-align: start;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial .quote {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--light-gray);
}

.testimonial p {
    margin-bottom: 2rem;
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-bottom: 2rem;
}

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

.contact-icon {
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin-bottom: 0;
}

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

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

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

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

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
}

.form-group textarea {
    resize: vertical;
}

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

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

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

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

.map-container {
    height: 450px;
    width: 100%;
    margin-top: 2rem;
}

.map-container iframe {
    border: none;
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo, .footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links ul li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    text-decoration: none;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.footer-contact p i {
    margin-right: 0.5rem;
}

.footer-social .social-icons a {
    background-color: #adb5bd;
    color: var(--dark-color);
}

.footer-social .social-icons a:hover {
    background-color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    margin-bottom: 0;
    min-width: 300px;
}

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

.cookie-content a {
    margin-left: auto;
    font-size: 0.9rem;
}

/* Icon Styles */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .testimonial {
        min-width: calc(50% - 1rem);
    }

    .service-card {
        flex-direction: column;
    }

    .service-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .features, .latest-posts, .page-header, .about-us, .testimonials, .contact-section {
        padding: 3rem 0;
    }

    .feature-card, .post-card, .team-member, .testimonial {
        margin-bottom: 1.5rem;
    }

    .testimonial {
        min-width: 100%;
    }

    .blog-post {
        flex-direction: column;
    }

    .post-image {
        height: 300px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-content a {
        margin-left: 0;
        align-self: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p, .page-header p {
        font-size: 1.1rem;
    }

    .service-card, .blog-post {
        padding: 1.5rem;
    }

    .post-image {
        height: 250px;
    }

    .contact-flex {
        flex-direction: column;
    }
}
