/* 
   GRIF - Birou de Proiectare
   Paleta 2026:
   #0A0A0A - Black
   #D4D4D4 - Grey
   #FAFAFA - White
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #0A0A0A;
    background: #FAFAFA;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: #0A0A0A;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(10, 10, 10, 0.1);
}

.header-content {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 40px;
}

.logo a {
    text-decoration: none;
    color: #FAFAFA;
    display: block;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo a:hover .logo-img {
    opacity: 0.8;
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FAFAFA;
    transition: width 0.3s ease;
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact .email,
.header-contact .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FAFAFA !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-contact .email:hover,
.header-contact .phone:hover {
    color: #D4D4D4;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
}

.mobile-language-switcher {
    display: none;
}

.lang-link {
    color: #FAFAFA !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-link:hover {
    background: rgba(250, 250, 250, 0.1);
}

.lang-link.active {
    background: #FAFAFA;
    color: #0A0A0A !important;
}

.lang-separator {
    color: #D4D4D4;
    font-weight: 300;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6) 0%, rgba(42, 42, 42, 0.6) 100%), 
                url('../images/photo-1.jpg') center center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: #FAFAFA;
    position: relative;
}

.hero-content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #D4D4D4;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #FAFAFA;
    color: #0A0A0A;
}

.btn-primary:hover {
    background: #D4D4D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 250, 250, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #FAFAFA;
    border: 2px solid #FAFAFA;
}

.btn-secondary:hover {
    background: #FAFAFA;
    color: #0A0A0A;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: #FAFAFA;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin: 40px 0;
    color: #0A0A0A;
}

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

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(10, 10, 10, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #0A0A0A;
    color: #FAFAFA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #D4D4D4;
    color: #0A0A0A;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #0A0A0A;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: #fff;
}

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

.about-text h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: #0A0A0A;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 32px;
}

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

.stat {
    text-align: center;
    padding: 30px;
    background: #FAFAFA;
    border-radius: 12px;
}

.stat h3 {
    font-size: 48px;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.stat p {
    color: #666;
    font-size: 14px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: #0A0A0A;
    color: #FAFAFA;
    padding: 60px 0 20px;
}

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

.footer-logo {
    height: 25px;
    width: auto;
    margin-bottom: 16px;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #D4D4D4;
}

.footer-col p {
    color: #D4D4D4;
    margin-bottom: 8px;
}

.footer-col a {
    color: #FAFAFA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #D4D4D4;
}

.slogan {
    font-style: italic;
    color: #D4D4D4;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #D4D4D4;
    font-size: 14px;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #FAFAFA;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive - Tablet & Mobile Only */
@media (max-width: 1024px) {
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
    }
    
    .logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    .header-contact {
        display: none !important;
        order: 3;
    }
    
    .burger-menu {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        order: 2;
        flex: 1;
        justify-content: flex-end;
        align-items: flex-end;
    }
    
    .main-nav {
        order: 4;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #0A0A0A;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        display: flex !important;
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 18px;
        display: inline-block;
        padding: 12px 0;
    }
    
    .main-nav a::after {
        display: block;
        width: 0;
        height: 2px;
        background: #FAFAFA;
        transition: width 0.3s ease;
    }
    
    .main-nav a:hover::after,
    .main-nav a.active::after {
        width: 100%;
    }
    
    .mobile-language-switcher {
        display: flex;
        gap: 8px;
        list-style: none;
        align-items: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(250, 250, 250, 0.2);
    }
    
    .mobile-language-switcher a {
        color: #FAFAFA;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .mobile-language-switcher a:hover {
        background: rgba(250, 250, 250, 0.1);
    }
    
    .mobile-language-switcher a.active {
        background: #FAFAFA;
        color: #0A0A0A;
    }
    
    .mobile-language-switcher span {
        color: #D4D4D4;
        font-size: 14px;
        font-weight: 300;
    }

    .logo-img {
        height: 50px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .portfolio-card {
        margin-bottom: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 18px;
    }
    
    .footer-logo {
        height: 20px;
    }
}

/* Mobile Landscape */
@media (max-width: 896px) and (orientation: landscape) {
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
    }
    
    .logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .header-contact {
        display: none !important;
    }
    
    .burger-menu {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        order: 2;
        flex: 1;
        justify-content: flex-end;
        align-items: flex-end;
    }
    
    .main-nav {
        order: 4;
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: #0A0A0A;
        padding: 60px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: flex !important;
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 16px;
        display: block;
        padding: 10px 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .btn {
        width: auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
    }
    
    .logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    .header-contact {
        display: none !important;
    }
    
    .burger-menu {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        order: 2;
        flex: 1;
        justify-content: flex-end;
        align-items: flex-end;
    }
    
    .main-nav {
        order: 4;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #0A0A0A;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: flex !important;
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 18px;
        display: block;
        padding: 12px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
