/* CSS Custom Properties */
:root {
    --primary-color: 219 69% 56%; /* #4F95DA */
    --secondary-color: 200 100% 85%; /* #B3E0FF */
    --accent-color: 15 86% 65%; /* #E55A4B */
    --text-dark: 210 11% 15%; /* #1E293B */
    --text-light: 210 8% 46%; /* #64748B */
    --background: 210 11% 98%; /* #F8FAFC */
    --white: 0 0% 100%; /* #FFFFFF */
    --gray-100: 210 20% 98%; /* #F1F5F9 */
    --gray-200: 210 16% 93%; /* #E2E8F0 */
    --gray-300: 210 14% 83%; /* #CBD5E1 */
    --gray-500: 210 11% 71%; /* #94A3B8 */
    --success: 142 76% 36%; /* #16A34A */
    --error: 0 84% 60%; /* #EF4444 */
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-light));
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: hsl(var(--gray-200));
    color: hsl(var(--text-dark));
}

.btn-secondary:hover {
    background: hsl(var(--gray-300));
}

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

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

/* Header */
.header {
    background: hsl(var(--white));
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-link {
    color: hsl(var(--text-dark));
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary-color));
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: hsl(var(--text-dark));
    margin: 3px 0;
    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.2));
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: hsl(var(--text-dark));
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.hero-icon {
    font-size: 8rem;
    color: hsl(var(--primary-color) / 0.3);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: hsl(var(--text-dark));
    margin-bottom: 1rem;
}

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

.service-card {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-card i {
    font-size: 3rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.service-card h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 1rem;
}

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

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

.about-text h2 {
    color: hsl(var(--text-dark));
    margin-bottom: 1.5rem;
}

.about-text ul {
    list-style: none;
    margin-top: 2rem;
}

.about-text li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-light));
}

.about-text li i {
    color: hsl(var(--success));
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat h3 {
    font-size: 2.5rem;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.stat p {
    color: hsl(var(--text-light));
    margin: 0;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
}

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

.review-card {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #fbbf24;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reviewer strong {
    color: hsl(var(--text-dark));
    display: block;
}

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

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: hsl(var(--primary-color));
}

.newsletter-content {
    text-align: center;
    color: hsl(var(--white));
}

.newsletter-content h2 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: hsl(var(--white) / 0.9);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid hsl(var(--white));
}

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

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

.footer-section h3,
.footer-section h4 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.footer-section p {
    color: hsl(var(--white) / 0.8);
}

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

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

.footer-section ul li a {
    color: hsl(var(--white) / 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--white) / 0.8);
}

.contact-info i {
    color: hsl(var(--primary-color));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--white) / 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: hsl(var(--white) / 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: hsl(var(--white));
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--text-dark));
    color: hsl(var(--white));
    padding: 1rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

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

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

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

.cookie-modal-content {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
}

.cookie-option {
    margin: 1rem 0;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: hsl(var(--white));
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .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 .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

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

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

    .services,
    .about,
    .reviews,
    .newsletter {
        padding: 60px 0;
    }

    .footer {
        padding: 60px 0 30px;
    }

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

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

/* SVG Styling */
.hero-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-svg:hover {
    transform: scale(1.02);
}

.service-icon svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.service-icon svg:hover {
    transform: translateY(-3px);
}

.article-featured-image {
    margin: 2rem 0;
    text-align: center;
    padding: 1rem;
    background: hsl(var(--white));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.article-featured-image svg {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Responsive SVG adjustments */
@media (max-width: 768px) {
    .hero-svg {
        max-width: 300px;
    }
    
    .service-icon svg {
        max-width: 80px;
    }
    
    .article-featured-image svg {
        max-width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-svg {
        max-width: 250px;
    }
    
    .service-icon svg {
        max-width: 60px;
    }
    
    .article-featured-image {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .article-featured-image svg {
        height: 150px;
    }
}
