/* CSS Custom Properties */
:root {
    --primary: 29 78% 50%; /* #FF6B35 */
    --primary-dark: 29 78% 40%; /* #E55A2B */
    --secondary: 210 11% 15%; /* #2C3E50 */
    --accent: 45 100% 50%; /* #FFD700 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text: 210 11% 15%; /* #2C3E50 */
    --text-light: 210 11% 35%; /* #555555 */
    --text-muted: 210 11% 55%; /* #888888 */
    --border: 210 11% 85%; /* #D5D8DC */
    --shadow: 210 11% 15% / 0.1; /* rgba(44, 62, 80, 0.1) */
    --wood: 25 75% 47%; /* #D2691E */
    --wood-dark: 25 75% 35%; /* #8B4513 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--background));
}

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

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

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

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: hsl(var(--surface));
}

.hidden {
    display: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

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

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

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

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

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

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

/* Header and Navigation */
.header {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

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

.nav-logo svg {
    color: hsl(var(--primary));
}

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

.nav-menu a {
    color: hsl(var(--text));
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 0 5rem;
    gap: 4rem;
}

.hero-content {
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

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

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

.section-header p {
    font-size: 1.25rem;
    color: hsl(var(--text-muted));
}

/* Company Section */
.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.company-text h3 {
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

.company-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: hsl(var(--surface));
    border-radius: 1rem;
    box-shadow: 0 4px 15px hsla(var(--shadow));
}

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

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

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

.service-card {
    background-color: hsl(var(--surface));
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px hsla(var(--shadow));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    color: hsl(var(--primary));
}

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

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: hsl(var(--surface));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px hsla(var(--shadow));
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--border)));
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    margin-bottom: 1rem;
    color: hsl(var(--secondary));
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: hsl(var(--surface));
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px hsla(var(--shadow));
}

.testimonial-content {
    margin-bottom: 2rem;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: hsl(var(--secondary));
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    background-color: hsl(var(--primary) / 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

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

.contact-info h3,
.contact-form h3 {
    margin-bottom: 2rem;
    color: hsl(var(--secondary));
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    background-color: hsl(var(--primary) / 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    background-color: hsl(var(--primary));
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Contact Form */
.contact-form {
    background-color: hsl(var(--surface));
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px hsla(var(--shadow));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: hsl(var(--secondary));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
    text-align: center;
    padding: 4rem 0;
}

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

.newsletter-content p {
    color: white;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsla(var(--surface) / 0.3);
}

/* Footer */
.footer {
    background-color: hsl(var(--secondary));
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: hsl(var(--primary));
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: hsla(var(--surface) / 0.8);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsla(var(--surface) / 0.2);
    color: hsla(var(--surface) / 0.7);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--secondary));
    color: white;
    padding: 1.5rem;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

.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: hsla(var(--surface) / 0.9);
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 10002;
}

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

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

.modal-content h3 {
    margin-bottom: 2rem;
    color: hsl(var(--secondary));
}

.cookie-option {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: hsl(var(--secondary));
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: hsl(var(--primary));
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--surface));
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 2px 10px hsla(var(--shadow));
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .company-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .modal-buttons {
        justify-content: center;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 5rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .contact-form {
        padding: 2rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .newsletter-section {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .portfolio-item,
    .service-card,
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0% 0% / 0.3;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .service-card,
    .portfolio-item,
    .testimonial-card {
        border: 2px solid hsl(var(--border));
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
