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

/* CSS Custom Properties */
:root {
    --primary-color: 212 100% 47%; /* #2563eb */
    --secondary-color: 158 64% 52%; /* #10b981 */
    --accent-color: 45 93% 47%; /* #f59e0b */
    --danger-color: 0 84% 60%; /* #ef4444 */
    --purple-color: 262 83% 58%; /* #8b5cf6 */
    
    --text-primary: 31 6% 12%; /* #1f2937 */
    --text-secondary: 220 9% 46%; /* #6b7280 */
    --text-light: 220 13% 91%; /* #f3f4f6 */
    
    --background: 0 0% 100%; /* #ffffff */
    --background-gray: 220 13% 91%; /* #f3f4f6 */
    --background-dark: 220 26% 14%; /* #1f2937 */
    
    --border-color: 220 13% 91%; /* #e5e7eb */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

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

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

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

.btn-primary:hover {
    background-color: hsl(212 100% 42%);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: hsl(var(--text-secondary));
    color: white;
    border-color: hsl(var(--text-secondary));
}

.btn-secondary:hover {
    background-color: hsl(220 9% 36%);
}

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

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

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
}

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

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--text-primary));
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: hsl(var(--primary-color));
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--background-gray)), hsl(var(--background)));
}

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

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

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

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

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

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

.service-card {
    background: hsl(var(--background));
    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-icon {
    margin-bottom: 1.5rem;
}

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

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

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

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

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

.about-text li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

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

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

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

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

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

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

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

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

.review-card {
    background: hsl(var(--background));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid hsl(var(--primary-color));
}

.review-stars {
    color: hsl(var(--accent-color));
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.review-author {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

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

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.newsletter p {
    color: hsl(var(--text-light));
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

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

.newsletter-form button {
    background: white;
    color: hsl(var(--primary-color));
    border: none;
}

.newsletter-form button:hover {
    background: hsl(var(--background-gray));
}

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

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.contact-form {
    background: hsl(var(--background));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
}

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

.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: white;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: hsl(var(--text-light));
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: hsl(var(--primary-color));
}

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

.social-links a {
    color: hsl(var(--text-light));
    transition: var(--transition);
}

.social-links a:hover {
    color: hsl(var(--primary-color));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--text-secondary));
    padding-top: 2rem;
    text-align: center;
}

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--background-dark));
    color: white;
    padding: 1rem;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

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

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

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

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

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

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

.cookie-category {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius);
}

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

.cookie-category span {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.cookie-banner.hidden,
.cookie-modal.hidden {
    display: none;
}

/* Blog Styles */
.blog-header {
    background: hsl(var(--background-gray));
    padding: 120px 0 60px;
}

.blog-header h1 {
    text-align: center;
    color: hsl(var(--text-primary));
}

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

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

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Article Page Styles */
.article-header {
    background: hsl(var(--background-gray));
    padding: 120px 0 40px;
}

.article-meta {
    text-align: center;
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.8;
}

.article-content h2 {
    color: hsl(var(--text-primary));
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    color: hsl(var(--text-primary));
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

.back-to-blog {
    text-align: center;
    padding: 2rem 0;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.legal-page h1 {
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: hsl(var(--text-primary));
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

/* Thank You Page */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: hsl(var(--background-gray));
}

.thank-you-content h1 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .btn-primary, .btn-secondary, .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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