/* CSS Variables */
:root {
    --primary-color: 255 107 53; /* #FF6B35 */
    --secondary-color: 44 62 80; /* #2C3E50 */
    --accent-color: 0 123 255; /* #007BFF */
    --text-dark: 33 37 41; /* #212529 */
    --text-light: 108 117 125; /* #6C757D */
    --background: 255 255 255; /* #FFFFFF */
    --background-light: 248 249 250; /* #F8F9FA */
    --border-color: 222 226 230; /* #DEE2E6 */
    --success-color: 40 167 69; /* #28A745 */
    --warning-color: 255 193 7; /* #FFC107 */
    --danger-color: 220 53 69; /* #DC3545 */
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --element-spacing: 24px;
}

/* 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-dark));
    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 {
    margin-bottom: 16px;
    color: rgb(var(--text-dark));
    font-weight: 600;
}

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

p {
    margin-bottom: 16px;
    color: rgb(var(--text-light));
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

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

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

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

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

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

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

/* Header and Navigation */
.header {
    background-color: rgb(var(--background));
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 16px 0;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

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

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

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: rgb(var(--text-dark));
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgb(var(--background-light)), rgb(var(--background)));
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: var(--element-spacing);
    color: rgb(var(--text-dark));
}

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

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    color: rgb(var(--text-light));
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

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

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

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

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: rgb(var(--background));
}

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

.service-card {
    text-align: center;
    padding: 40px 24px;
    background-color: rgb(var(--background));
    border: 1px solid rgb(var(--border-color));
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: var(--element-spacing);
}

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

.service-card p {
    color: rgb(var(--text-light));
}

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

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

.about-text h2 {
    margin-bottom: var(--element-spacing);
}

.about-text p {
    margin-bottom: var(--element-spacing);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: rgb(var(--primary-color));
    margin-bottom: 8px;
}

.stat p {
    font-size: 0.875rem;
    color: rgb(var(--text-light));
    margin: 0;
}

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

/* Products Section */
.products {
    padding: var(--section-padding);
    background-color: rgb(var(--background));
}

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

.product-card {
    background-color: rgb(var(--background));
    border: 1px solid rgb(var(--border-color));
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.product-image {
    padding: 24px;
    text-align: center;
    background-color: rgb(var(--background-light));
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    margin-bottom: 12px;
    color: rgb(var(--text-dark));
}

.product-info p {
    color: rgb(var(--text-light));
    margin: 0;
}

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

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

.review-card {
    background-color: rgb(var(--background));
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
    color: rgb(var(--text-dark));
}

.reviewer-info p {
    margin: 0;
    font-size: 0.875rem;
    color: rgb(var(--text-light));
}

.review-rating {
    color: #FFD700;
    font-size: 1.125rem;
}

.review-content p {
    font-style: italic;
    color: rgb(var(--text-light));
    margin: 0;
}

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

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

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

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

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    gap: 16px;
}

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

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    font-size: 0.875rem;
}

.form-checkbox input {
    margin-top: 2px;
}

.form-checkbox a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.contact-icon {
    min-width: 30px;
}

.contact-details h3 {
    margin-bottom: 8px;
    color: rgb(var(--text-dark));
}

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

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

.social-media h3 {
    margin-bottom: var(--element-spacing);
    color: rgb(var(--text-dark));
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.social-links a:hover {
    transform: translateY(-4px);
}

/* Footer */
.footer {
    background-color: rgb(var(--secondary-color));
    color: white;
    padding: 48px 0 24px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 16px;
}

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

.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-logo {
    margin-bottom: 16px;
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(var(--secondary-color));
    color: white;
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

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

.cookie-text h3 {
    margin-bottom: 8px;
    color: white;
}

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

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

.cookie-buttons .btn {
    font-size: 0.875rem;
    padding: 8px 16px;
    min-height: auto;
}

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

.cookie-modal-content {
    background-color: rgb(var(--background));
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    color: rgb(var(--text-dark));
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgb(var(--text-light));
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: rgb(var(--text-dark));
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgb(var(--border-color));
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category div {
    flex: 1;
    margin-right: 16px;
}

.cookie-category h3 {
    margin-bottom: 8px;
    color: rgb(var(--text-dark));
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
    color: rgb(var(--text-light));
    font-size: 0.875rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgb(var(--primary-color));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: rgb(var(--primary-color));
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background-color: rgb(var(--background));
        flex-direction: column;
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .services-grid,
    .products-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        gap: 12px;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .newsletter,
    .footer {
        display: none;
    }
    
    .hero,
    .services,
    .about,
    .products,
    .reviews,
    .contact {
        padding: 24px 0;
    }
    
    body {
        color: black;
        background: white;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: 0 0 0;
        --secondary-color: 0 0 0;
        --text-dark: 0 0 0;
        --text-light: 0 0 0;
        --border-color: 0 0 0;
    }
}

/* Reduced Motion */
@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 */
*:focus {
    outline: 2px solid rgb(var(--primary-color));
    outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
    outline: 2px solid rgb(var(--primary-color));
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background-color: rgb(var(--success-color));
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    margin: 16px 0;
    text-align: center;
}

/* Error Message */
.error-message {
    background-color: rgb(var(--danger-color));
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    margin: 16px 0;
    text-align: center;
}
