/* Variables */
:root {
    /* Romanian flag colors */
    --primary: 214 100% 32%; /* #0055A4 - Blue */
    --secondary: 51 100% 50%; /* #FFD700 - Yellow */
    --accent: 354 82% 45%; /* #CE1126 - Red */
    
    /* Neutrals */
    --dark: 0 0% 20%; /* #333333 */
    --medium: 0 0% 47%; /* #777777 */
    --light: 0 0% 87%; /* #DDDDDD */
    --lighter: 0 0% 95%; /* #F2F2F2 */
    --white: 0 0% 100%; /* #FFFFFF */
    
    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--dark));
    background-color: hsl(var(--white));
    overflow-x: hidden;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: hsl(var(--secondary));
}

.section-header p {
    color: hsl(var(--medium));
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    border: none;
    outline: none;
}

.btn:hover {
    transform: translateY(-3px);
}

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

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

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

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

.btn-text {
    background-color: transparent;
    color: hsl(var(--primary));
    padding: 0.75rem 0;
}

.btn-text:hover {
    color: hsl(var(--accent));
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: hsl(var(--white));
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    height: 50px;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

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

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

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: hsl(var(--dark));
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: hsl(var(--dark));
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background-color: hsl(var(--lighter));
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

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

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

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

/* About Section */
.about-section {
    background-color: hsl(var(--white));
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

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

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

.service-card:hover {
    transform: translateY(-10px);
}

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

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

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

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

.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
    background-color: hsl(var(--lighter));
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(var(--white));
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--primary));
}

.product-info p {
    margin-bottom: 1.5rem;
}

/* Reviews Section */
.reviews-section {
    background-color: hsl(var(--lighter));
    position: relative;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.reviews-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.review-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    background-color: hsl(var(--white));
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

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

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

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

.reviewer-info h4 {
    margin-bottom: 0.25rem;
}

.reviewer-info p {
    margin-bottom: 0;
    color: hsl(var(--medium));
    font-size: 0.9rem;
}

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

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

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

.newsletter-content p {
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    outline: none;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    font-size: 0.85rem;
}

.form-consent input {
    margin-top: 0.25rem;
}

.form-consent a {
    color: hsl(var(--white));
    text-decoration: underline;
}

.form-consent a:hover {
    color: hsl(var(--secondary));
}

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

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-map {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.contact-icon {
    margin-top: 0.25rem;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-text p {
    margin-bottom: 0;
}

.contact-social {
    margin-top: 3rem;
}

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

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

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

/* Footer */
.main-footer {
    background-color: hsl(var(--dark));
    color: hsl(var(--white));
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1 1 300px;
}

.footer-nav {
    flex: 2 1 600px;
    display: flex;
    justify-content: space-between;
}

.footer-nav-column h3 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-nav-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: hsl(var(--secondary));
}

.footer-nav-column ul li {
    margin-bottom: 0.75rem;
}

.footer-nav-column ul li a {
    color: hsl(var(--light));
    transition: color var(--transition-fast);
}

.footer-nav-column ul li a:hover {
    color: hsl(var(--secondary));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--medium) / 0.2);
    font-size: 0.9rem;
    color: hsl(var(--light));
}

/* Hidden Utility */
.hidden {
    display: none;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section .container,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-content,
    .about-text,
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .contact-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: hsl(var(--white));
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 0.75rem 0;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }
}
