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

:root {
    --primary-color: #402939;
    --accent-black: #000000;
    --accent-white: #FFFFFF;
    --text-gray: #666666;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--accent-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-graphic {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-black));
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Contur alb intern */
.hero-graphic .inner-frame {
    width: calc(100% - 40px); /* 20px margini pe toate părțile */
    height: calc(100% - 40px);
    border: 2px solid var(--accent-white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imaginea propriu-zisă */
.hero-image-inside {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Content Blocks */
.content-blocks {
    padding: 80px 0;
    background: var(--accent-white);
}

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

.content-block {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.content-block:hover {
    transform: translateY(-5px);
}

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

.content-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-black);
    margin-bottom: 1rem;
}

.content-block p {
    color: var(--text-gray);
    line-height: 1.6;
}

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

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

.about-image {
    margin-bottom: 2rem;
}

.about-graphic-1,
.about-graphic-2 {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    position: relative;
}

.about-graphic-1 {
    background: linear-gradient(45deg, var(--primary-color), #5a4a5a);
}

.about-graphic-2 {
    background: linear-gradient(135deg, var(--accent-black), var(--primary-color));
}

.about-graphic-1::before,
.about-graphic-2::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--accent-white);
    border-radius: 8px;
    z-index: 2; /* Adăugat! face conturul să apară peste imagine */
}

.about-image-inside {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    object-fit: cover;
    border-radius: 8px;
    z-index: 1; /* Imaginea sub chenar */
}

.about-left h3,
.about-right h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-black);
    margin-bottom: 1.5rem;
}

.about-left p,
.about-right p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

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

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 2rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--accent-white);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-black);
    margin-bottom: 1.5rem;
}

.service-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.products-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--accent-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.contact-left {
    position: relative;
}

.contact-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-black));
    position: relative;
    border-radius: 10px 0 0 10px;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: var(--accent-white);
    border-radius: 10px 0 0 10px;
}

.contact-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact-overlay p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-right {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 0 10px 10px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    justify-content: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    background: var(--accent-white);
}

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

.submit-button {
    background: var(--primary-color);
    color: var(--accent-white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--accent-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--accent-black);
    color: var(--accent-white);
    padding: 2rem 0;
}

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

.footer-logo h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-white);
}

.footer-text p {
    color: var(--accent-white);
    font-size: 0.9rem;
}

.footer-text a {
    color: var(--accent-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #ccc;
}

/* Impressum Page Styles */
.impressum-page {
    padding: 120px 0 60px;
    background: var(--light-gray);
    min-height: 100vh;
}

.impressum-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--accent-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.impressum-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-black);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.impressum-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.impressum-content {
    line-height: 1.8;
    color: var(--text-gray);
}

.impressum-section {
    margin-bottom: 3rem;
}

.impressum-section:last-child {
    margin-bottom: 0;
}

.impressum-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-black);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.impressum-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.impressum-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.impressum-section p strong {
    color: var(--accent-black);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--accent-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .blocks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .services-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-background {
        border-radius: 10px;
        min-height: 300px;
    }

    .contact-overlay {
        border-radius: 10px;
    }

    .contact-right {
        border-radius: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .hero {
        padding: 100px 0 0;
    }

    .impressum-page {
        padding: 100px 0 40px;
    }

    .impressum-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .impressum-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .impressum-section h2 {
        font-size: 1.8rem;
    }

    .impressum-section h3 {
        font-size: 1.4rem;
    }

    .about,
    .services,
    .products,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .impressum-title {
        font-size: 2rem;
    }

    .impressum-section h2 {
        font-size: 1.6rem;
    }

    .impressum-section h3 {
        font-size: 1.3rem;
    }

    .impressum-container {
        padding: 1rem;
    }

    .content-block {
        padding: 1.5rem 1rem;
    }

    .contact-overlay {
        padding: 2rem;
    }

    .contact-right {
        padding: 2rem;
    }

    .contact-overlay h3 {
        font-size: 1.8rem;
    }
}