/* === GROUND SCREWS ROMANIA - STILURI UNIFICATE === */

/* Import Fonturi */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500&display=swap');

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Previne scroll orizontal nedorit */
}

/* Variabile */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --light-bg: #f0f2f5;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* === HEADER & NAVIGATIE === */
.header-banner {
    position: relative;
    height: 200px; /* Înălțime fixă desktop */
    background-color: var(--primary-color);
}

.header-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
}

.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1.2;
}

.logo-subtitle {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Navigare Desktop */
nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Meniu Burger (Ascuns pe Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* === SECTIUNI GENERALE === */
main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 2rem; text-align: center; }

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-3px);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9));
    color: var(--white);
    text-align: center;
    padding: 4rem 0 0 0;
}

.hero h1 { color: var(--white); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

.hero-full-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-top: 2rem;
}

/* === GRILE (Produse, Servicii, Carduri) === */
.grid-layout, .products-grid, .services-grid {
    display: grid;
    /* Cheia responsive: minim 280px, altfel trece pe un singur rand */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card, .product-card, .service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Tabel Specificatii */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 600px; /* Forteaza scroll pe mobil */
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Formular Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #bdc3c7;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* Social Media */
.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}
.social-link img { width: 40px; height: 40px; }

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    /* Header */
    .header-banner { height: 120px; }
    .logo-text { display: none; } /* Ascundem textul pe mobil pentru spatiu */
    .logo-image { height: 50px; }
    
    /* Meniu Burger */
    .menu-toggle { display: flex; }
    
    /* Navigatia Mobila */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Ascuns initial */
        height: 100vh;
        width: 250px;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 80px;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    nav ul.active {
        right: 0; /* Afisare meniu */
    }

    nav ul li {
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Animatie Buton Burger */
    .menu-toggle.is-active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Layout Mobil */
    .container { padding: 2rem 1rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    
    .hero h1 { font-size: 1.8rem; }
    .hero-full-image { height: 250px; }
    
    /* Process steps stack vertical */
    .process-steps .process-step { flex-direction: column; text-align: center; }
    .step-number { margin: 0 auto 1rem auto; }
}