/*
Theme Name: Bravura
Theme URI: 
Author: Antigravity
Description: Tema premium B2B pentru Bravura Furniture
Version: 1.0
Text Domain: bravura
*/

:root {
    --primary-color: #D4AF37;
    /* Auriu Logo */
    --primary-hover: #b8962c;
    --dark-bg: #1a1a1a;
    /* Gri Fundal */
    --darker-bg: #111111;
    --light-bg: #f9f9f9;
    --text-color: #333333;
    --text-light: #f4f4f4;
    --gray-text: #888888;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease-in-out;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Classes */
.text-gold {
    color: var(--primary-color);
}

.text-dark {
    color: var(--dark-bg);
}

.text-light {
    color: var(--text-light);
}

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

/* Section Utilities */
.section {
    padding: 6rem 2rem;
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffdf73 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    color: var(--dark-bg);
    border: none;
}

.btn-primary:hover {
    background-position: right center;
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffdf73 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline:hover {
    color: var(--dark-bg);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Header */
.site-header {
    background-color: var(--dark-bg);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo span {
    color: var(--text-light);
    font-weight: 300;
}

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

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .main-nav.active {
        max-height: 500px;
        border-top: 1px solid #333;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 1.5rem;
        align-items: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--darker-bg);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
    margin-right: auto;
    margin-left: 10%;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
    }

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

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

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Trust Bar */
.trust-bar {
    background-color: var(--darker-bg);
    padding: 3rem 0;
    border-bottom: 1px solid #333;
}

.trust-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.6;
}

.trust-logos img {
    height: 40px;
    filter: grayscale(100%) brightness(200%);
    transition: var(--transition);
}

.trust-logos img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

/* Cards / Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-img {
    height: 250px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--darker-bg);
    color: var(--gray-text);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links list-style {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-text);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Headers */
.page-header {
    background-color: var(--dark-bg);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 5rem 1rem 3rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    h1,
    h2,
    h3 {
        word-break: break-word;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    padding: 2rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    width: 20px;
    height: 20px;
    background: var(--dark-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* EU Funding Bar */
.eu-funding-bar {
    background-color: #ffffff;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eaeaea;
}

.eu-funding-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.eu-funding-inner img {
    max-height: 50px;
    /* Dimensiune echilibrată pentru a nu deranja design-ul */
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .eu-funding-inner {
        gap: 1rem;
    }

    .eu-funding-inner img {
        max-height: 35px;
    }
}

/* Main Logo */
.main-logo {
    height: 45px;
    width: 220px;
    /* Dimensiune forțată pentru SVG-uri fără width intrinsec */
    object-fit: contain;
    object-position: left center;
    transition: var(--transition);
}

.main-logo:hover {
    opacity: 0.8;
}

/* Footer Logo */
.footer-logo {
    height: 40px;
    width: 200px;
    /* Dimensiune forțată */
    object-fit: contain;
    object-position: left center;
}

/* Scroll Reveal Animations */
.reveal,
.card,
.timeline-item,
.trust-logos img {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active,
.card.active,
.timeline-item.active,
.trust-logos.active img {
    opacity: 1;
    transform: translateY(0);
}

/* Delay cards inside grid for staggered effect */
.grid-3 .card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-3 .card:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-3 .card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Parallax Helper Class */
.parallax-bg {
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
}

/* Modern Gallery */
.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: zoom-in;
}

/* Dynamic masonry-like layout */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-row: span 2;
}

.gallery-item:nth-child(7) {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .modern-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(7) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox Base Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}