/* CSS Custom Properties */
:root {
    --primary-color: 210 100% 45%;      /* #0066E6 */
    --secondary-color: 150 65% 45%;     /* #28A745 */
    --accent-color: 35 85% 55%;         /* #FF8C00 */
    --text-dark: 220 25% 15%;           /* #2C3E50 */
    --text-light: 210 10% 40%;          /* #6C757D */
    --background: 210 11% 98%;          /* #F8F9FA */
    --white: 0 0% 100%;                 /* #FFFFFF */
    --border: 210 10% 90%;              /* #E9ECEF */
    --shadow: 210 20% 85%;              /* #CED4DA */
    --error: 0 75% 55%;                 /* #DC3545 */
    --success: 150 65% 45%;             /* #28A745 */
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 4px hsla(var(--shadow), 0.1);
    --shadow-md: 0 4px 8px hsla(var(--shadow), 0.15);
    --shadow-lg: 0 8px 16px hsla(var(--shadow), 0.2);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: hsl(var(--text-dark));
    background-color: hsl(var(--background));
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-color) / 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-tertiary {
    background-color: hsl(var(--text-light));
    color: hsl(var(--white));
}

.btn-tertiary:hover {
    background-color: hsl(var(--text-dark));
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text-dark));
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: hsl(var(--text-light));
    max-width: 600px;
    margin: 0 auto;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--white));
    border-top: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: hsl(var(--text-dark));
}

.cookie-content p {
    color: hsl(var(--text-light));
    margin-bottom: 16px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(var(--text-dark), 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-modal.show {
    display: flex;
}

.modal-content {
    background-color: hsl(var(--white));
    padding: 30px;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: hsl(var(--text-dark));
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
}

.cookie-category label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-category p {
    margin-top: 8px;
    color: hsl(var(--text-light));
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--white));
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: hsl(var(--text-dark));
    padding: 8px 0;
    position: relative;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-dark));
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: hsl(var(--text-dark));
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: hsl(var(--text-light));
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: hsl(var(--white));
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: hsl(var(--text-dark));
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: hsl(var(--text-light));
    margin-bottom: 30px;
    line-height: 1.7;
}

.features {
    display: grid;
    gap: 20px;
}

.feature h4 {
    color: hsl(var(--primary-color));
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature p {
    color: hsl(var(--text-light));
    font-size: 1rem;
}

.about-stats {
    display: grid;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background-color: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    margin-bottom: 8px;
}

.stat-text {
    color: hsl(var(--text-light));
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: hsl(var(--background));
}

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

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

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

.service-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: hsl(var(--text-dark));
    margin-bottom: 15px;
}

.service-card p {
    color: hsl(var(--text-light));
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: hsl(var(--white));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: hsl(var(--background));
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: hsl(var(--text-dark));
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author h4 {
    color: hsl(var(--text-dark));
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.testimonial-author span {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background-color: hsl(var(--background));
}

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

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

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

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

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.3rem;
    color: hsl(var(--text-dark));
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: hsl(var(--text-light));
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: hsl(var(--primary-color));
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: hsl(var(--white));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

.contact-item h4 {
    color: hsl(var(--text-dark));
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-item p {
    color: hsl(var(--text-light));
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    background-color: hsl(var(--background));
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: hsl(var(--text-dark));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: hsl(var(--white));
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color), 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: hsl(var(--error));
}

.error-message {
    display: block;
    color: hsl(var(--error));
    font-size: 14px;
    margin-top: 5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: hsl(var(--text-dark));
    color: hsl(var(--white));
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: hsl(var(--white));
}

.footer-section p {
    color: hsl(210deg 6.75% 57.78%);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: hsl(210deg 6.75% 57.78%);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: hsl(var(--white));
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    background-color: hsl(var(--secondary-color));
    transform: translateY(-2px);
}

.social-links img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--text-light) / 0.2);
    color: hsl(var(--text-light));
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: hsl(var(--white));
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about,
    .services,
    .testimonials,
    .blog,
    .contact {
        padding: 60px 0;
    }

    .contact-form {
        padding: 25px;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

/* Blog Pages Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-article header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-article header img {
    width: 100%;
    height: auto;
    margin: 0 auto 30px auto;
    border-radius: var(--border-radius-lg);
    display: block;
}

.blog-article h1 {
    font-size: 2.5rem;
    color: hsl(var(--text-dark));
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-article .meta {
    color: hsl(var(--text-light));
    font-size: 1rem;
    margin-bottom: 20px;
}

.blog-article .intro {
    font-size: 1.2rem;
    color: hsl(var(--text-light));
    line-height: 1.6;
}

.blog-article .content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: hsl(var(--text-dark));
}

.blog-article .content h2 {
    font-size: 1.8rem;
    color: hsl(var(--text-dark));
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid hsl(var(--primary-color));
}

.blog-article .content h3 {
    font-size: 1.4rem;
    color: hsl(var(--text-dark));
    margin: 25px 0 15px 0;
}

.blog-article .content p {
    margin-bottom: 20px;
}

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

.blog-article .content li {
    margin-bottom: 8px;
}

.blog-article .content strong {
    color: hsl(var(--primary-color));
    font-weight: 600;
}

.blog-article .back-to-blog {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid hsl(var(--border));
}

/* Print styles */
@media print {
    .header,
    .cookie-consent,
    .cookie-modal {
        display: none;
    }

    .hero,
    .about,
    .services,
    .testimonials,
    .blog,
    .contact,
    .footer {
        padding: 20px 0;
    }
}
