/* RESET & VARIABILE GENERALI */
:root {
    --bg-color: #121417;
    --bg-card: rgba(26, 29, 33, 0.5);
    --bg-card-alt: rgba(34, 38, 44, 0.55);
    --primary: #f59e0b; /* Portocaliu construcții */
    --primary-hover: #d97706;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --radius: 8px;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* FUNDAL IMAGINE INDEX */
body.page-index {
    background: linear-gradient(rgba(18, 20, 23, 0.75), rgba(18, 20, 23, 0.8)),
    url('imagini/poza1.jpeg') center/cover no-repeat fixed;
}

/* FUNDAL IMAGINE SERVICII */
body.page-servicii {
    background: linear-gradient(rgba(18, 20, 23, 0.75), rgba(18, 20, 23, 0.8)),
    url('imagini/poza2.jpeg') center/cover no-repeat fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* NAVIGATION / MENIU NAVBAR */
.navbar {
    background-color: rgba(18, 20, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 1002;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

/* HAMBURGER BUTTON (Ascuns pe Desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* BUTOANE & HOVER */
.btn-primary {
    background-color: var(--primary);
    color: #000 !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius);
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #000 !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    display: inline-block;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--text-muted);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 4px;
    transition: background-color 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #1eb954;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* HERO SECTION */
.hero {
    padding: 90px 0;
    text-align: center;
}

.hero-bg {
    background: transparent;
    position: relative;
}

.hero-content-box {
    position: relative;
    z-index: 2;
}

.badge {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* SECTIUNI & GRID */
.section {
    padding: 70px 0;
}

.bg-card-sec {
    background-color: rgba(26, 29, 33, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.sub-title {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-top: 5px;
}

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

/* NOU: LAYOUT SERVICII FIX PE 2 COLOANE (Stânga carduri 2x2, Dreapta casetă stil galerie) */
.services-split-grid {
    display: flex;
    gap: 30px;
    align-items: center;
}

.services-cards-col {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.services-image-col {
    flex: 1;
    display: flex;
}

.sticky-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: rgba(26, 29, 33, 0.4);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4 / 3; /* Casetă perfect proporționată ca la fotografii */
}

.sticky-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CARDURI SERVICII */
.service-card {
    background-color: rgba(34, 38, 44, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius);
}

.service-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.service-card h2,
.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* PROCESUL DE LUCRU */
.process-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    background-color: rgba(34, 38, 44, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius);
}

.step-badge {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* HEADER PAGINI SECUNDARE */
.page-header {
    padding: 50px 0;
    background: transparent !important;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
}

/* GALERIE FOTO */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: rgba(26, 29, 33, 0.4);
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* FOOTER */
footer {
    background: transparent !important;
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .process-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-split-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body.page-index,
    body.page-servicii,
    body {
        background-attachment: scroll !important;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(18, 20, 23, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 30px 30px;
        gap: 25px;
        transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.15rem;
        width: 100%;
    }

    .hamburger-btn.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
        background-color: var(--primary);
    }

    .hamburger-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
        background-color: var(--primary);
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .process-grid-4 {
        grid-template-columns: 1fr;
    }

    .services-cards-col {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}
/* REPARARE FORMULAR ȘI TEXTAREA */
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(18, 20, 23, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}
