/* CSS Custom Properties */
:root {
    --primary: 76 175 80; /* #4CAF50 */
    --primary-dark: 46 125 50; /* #2E7D32 */
    --secondary: 33 150 243; /* #2196F3 */
    --accent: 255 107 107; /* #FF6B6B */
    --background: 250 250 250; /* #FAFAFA */
    --surface: 255 255 255; /* #FFFFFF */
    --text: 33 33 33; /* #212121 */
    --text-secondary: 117 117 117; /* #757575 */
    --border: 224 224 224; /* #E0E0E0 */
    --shadow: 0 0 0; /* #000000 */
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    --container-max-width: 1200px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: rgb(var(--text));
    background-color: rgb(var(--background));
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: rgb(var(--text));
}

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

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

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

a:hover {
    color: rgb(var(--primary-dark));
}

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

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

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

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

.btn-secondary:hover {
    background-color: rgb(var(--text));
    color: white;
}

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

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

/* Header */
.header {
    background-color: rgb(var(--surface));
    box-shadow: 0 2px 10px rgba(var(--shadow), 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    height: 100%;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--text));
}

.brand-text {
    color: rgb(var(--primary));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: rgb(var(--text));
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgb(var(--primary));
}

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

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

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

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

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

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

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

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

.cookie-modal-content {
    background-color: rgb(var(--surface));
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
}

.cookie-modal-content h3 {
    margin-bottom: 20px;
}

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

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgb(var(--primary) / 0.1), rgb(var(--secondary) / 0.1));
    padding: calc(var(--header-height) + 60px) 0 60px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgb(var(--text));
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgb(var(--text-secondary));
}

.hero-image svg {
    width: 100%;
    height: auto;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: rgb(var(--surface));
}

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

.about-text h3 {
    color: rgb(var(--primary));
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgb(var(--surface));
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(var(--shadow), 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--shadow), 0.15);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    color: rgb(var(--text));
    margin-bottom: 15px;
}

/* Reviews Section */
.reviews {
    background-color: rgb(var(--surface));
}

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

.review-card {
    background-color: rgb(var(--background));
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid rgb(var(--primary));
}

.review-stars {
    color: #FFB300;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: rgb(var(--text));
}

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

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

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--primary-dark)));
    color: white;
}

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

.newsletter-text h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.checkbox-label a {
    color: white;
    text-decoration: underline;
}

/* Blog Preview Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: rgb(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(var(--shadow), 0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--shadow), 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: rgb(var(--text));
}

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

.blog-link {
    color: rgb(var(--primary));
    font-weight: 500;
}

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

/* Contact Section */
.contact {
    background-color: rgb(var(--surface));
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon {
    background-color: rgb(var(--primary) / 0.1);
    padding: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h4 {
    color: rgb(var(--text));
    margin-bottom: 5px;
}

.contact-details p {
    margin: 0;
    color: rgb(var(--text-secondary));
}

.social-links h4 {
    margin-bottom: 20px;
    color: rgb(var(--text));
}

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

.social-icons a {
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px);
}

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

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

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .review-card,
    .blog-card {
        margin-bottom: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid rgb(var(--primary));
    outline-offset: 2px;
}

/* Form Validation */
.form-error {
    border-color: #f44336 !important;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    color: rgb(var(--primary));
    font-size: 0.9rem;
    margin-top: 5px;
}
