/* css/constructii.css */

:root {
    /* Paletă mai "bătrânească", elegantă și corporatistă (tip PotConstruct) */
    --primary: #8b1e1e; /* Roșu închis/Bordo */
    --primary-dark: #631515;
    --text-main: #222222;
    --text-muted: #555555;
    --bg-base: #ffffff;
    --bg-light: #f5f5f5; /* Gri foarte deschis pentru secțiuni alternative */
    --border: #e0e0e0;
    --transition: all 0.4s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif; /* Font lizibil, curat */
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text, .section-badge, .counter, blockquote {
    font-family: 'Playfair Display', serif; /* Font elegant cu serife pentru titluri */
}

a { text-decoration: none; color: inherit; }

/* --- Navbar --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 15px 5%;
    z-index: 1000; transition: var(--transition);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav.scrolled {
    padding: 10px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }

/* Logo Tradițional */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px;
    border: 2px solid var(--primary);
    color: var(--primary); font-size: 1.5rem; font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .main-text { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.logo-text .sub-text { font-family: 'Lato', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn-nav) {
    font-family: 'Lato', sans-serif;
    color: var(--text-main); font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; transition: color 0.3s;
}
.nav-links a:not(.btn-nav):hover, .nav-links a.active:not(.btn-nav) { color: var(--primary); }

.btn-nav {
    background: var(--primary); color: #fff;
    padding: 12px 25px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    transition: var(--transition); border-radius: 2px;
}
.btn-nav:hover { background: var(--primary-dark); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 30px; height: 3px; background: var(--primary); transition: 0.3s; }

/* --- Hero Section --- */
.hero { position: relative; height: 90vh; display: flex; align-items: center; padding-top: 50px; overflow: hidden; }
.hero-bg {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background: url('https://images.unsplash.com/photo-1541888082470-bf52243d9396?q=80&w=2000') center/cover no-repeat;
    z-index: 1; transition: transform 0.1s ease-out; filter: grayscale(20%);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Overlay întunecat pentru contrast */
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; padding: 0 5%;
    width: 100%; color: #fff;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 25px; }
.hero h1 span { color: var(--primary); font-style: italic; }
.hero p { font-size: 1.2rem; font-family: 'Lato', sans-serif; font-weight: 300; max-width: 700px; margin-bottom: 40px; color: #f0f0f0; }

.cta-group { display: flex; gap: 20px; }
.btn {
    display: inline-block; padding: 15px 35px; font-size: 0.9rem; font-family: 'Lato', sans-serif;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700; text-align: center;
    transition: var(--transition); border-radius: 2px; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--text-main); }
.btn-block { width: 100%; }

/* --- Layout Generala --- */
.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.light-bg { background-color: var(--bg-light); }
.text-center { text-align: center; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Section Headers */
.section-badge {
    display: inline-block; color: var(--primary); text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.85rem; font-weight: 700; font-family: 'Lato', sans-serif; margin-bottom: 15px;
    border-bottom: 2px solid var(--primary); padding-bottom: 5px;
}
.section h2 { font-size: 3rem; margin-bottom: 25px; color: var(--text-main); line-height: 1.1; }
.section h2 span { color: var(--primary); font-style: italic; }
.section p { color: var(--text-muted); font-size: 1.1rem; }
.section-header { max-width: 700px; margin: 0 auto 60px; }

/* Animatii Scroll */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.slide-up { transform: translateY(40px); }
.reveal.slide-left { transform: translateX(40px); }
.reveal.slide-right { transform: translateX(-40px); }
.reveal.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Istoric --- */
.history-text .lead { font-size: 1.25rem; color: var(--text-main); font-weight: 700; margin-bottom: 20px; }
.history-text p { margin-bottom: 20px; }
.signature { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 20px; }
.signature p { font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

.history-image { position: relative; padding-right: 30px; padding-bottom: 30px; }
.history-image img { width: 100%; height: auto; box-shadow: 15px 15px 0 var(--border); }
.experience-badge {
    position: absolute; bottom: 0; right: 0; background: var(--primary); color: #fff;
    padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.experience-badge .number { display: block; font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700; line-height: 1; }
.experience-badge .text { font-family: 'Lato', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

/* --- Statistica --- */
.stats-section { background: var(--primary); color: #fff; padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-box h3 { font-size: 3.5rem; display: inline-block; line-height: 1; }
.stat-box span { font-size: 2.5rem; }
.stat-box p { font-family: 'Lato', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: rgba(255,255,255,0.8); margin-top: 10px; }

/* --- Expertiza Servicii --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #fff; border: 1px solid var(--border); transition: var(--transition); }
.service-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-10px); }
.service-img { width: 100%; height: 250px; object-fit: cover; }
.service-content { padding: 35px 30px; }
.service-content h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary); }
.service-content p { font-size: 1rem; margin-bottom: 25px; }
.link-arrow { font-family: 'Lato', sans-serif; font-weight: 700; color: var(--text-main); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s; display: inline-flex; align-items: center; }
.link-arrow span { margin-left: 5px; transition: transform 0.3s; color: var(--primary); font-size: 1.2rem; }
.service-card:hover .link-arrow { color: var(--primary); }
.service-card:hover .link-arrow span { transform: translateX(5px); }

/* --- Parallax Quote --- */
.quote-section { position: relative; padding: 120px 0; background-attachment: fixed; overflow: hidden; }
.quote-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=2000') center/cover fixed; z-index: 1; }
.quote-section .container { position: relative; z-index: 2; max-width: 900px; }
blockquote { color: #fff; font-size: 2.5rem; font-style: italic; line-height: 1.4; }

/* --- Contact --- */
.contact-form-wrapper { background: #fff; padding: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.classic-form .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.classic-form .input-group { margin-bottom: 25px; }
.classic-form label { display: block; font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; text-transform: uppercase; }
.classic-form input, .classic-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border); background: var(--bg-light); font-family: 'Lato', sans-serif; font-size: 1rem; color: var(--text-main); transition: var(--transition); outline: none; }
.classic-form input:focus, .classic-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.1); }

.info-card { background: var(--primary); color: #fff; padding: 50px; }
.info-card h3 { font-size: 2rem; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.info-item .icon { font-size: 2rem; line-height: 1; }
.info-item strong { display: block; font-family: 'Lato', sans-serif; font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.info-item p { color: rgba(255,255,255,0.8); font-family: 'Lato', sans-serif; }

/* --- Footer --- */
footer { background: var(--text-main); color: #fff; padding: 60px 0 20px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 20px; color: #fff; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-family: 'Lato', sans-serif; color: #aaa; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; font-family: 'Lato', sans-serif; font-size: 0.9rem; color: #777; }
.agency-credit a { color: var(--primary); font-weight: 700; }

/* --- Popup --- */
.custom-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 999990; opacity: 0; visibility: hidden; transition: var(--transition); }
.custom-popup.active { opacity: 1; visibility: visible; }
.popup-content { background: #fff; padding: 50px; text-align: center; transform: scale(0.95); transition: var(--transition); max-width: 450px; }
.custom-popup.active .popup-content { transform: scale(1); }
.popup-icon { width: 60px; height: 60px; border: 2px solid var(--primary); color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin: 0 auto 25px; }
.popup-content h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 15px; }
.popup-content p { color: var(--text-muted); margin-bottom: 30px; font-family: 'Lato', sans-serif; }

/* --- Responsivitate --- */
@media (max-width: 1024px) {
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .history-image { padding-right: 0; padding-bottom: 0; margin-top: 30px; }
    .history-image img { box-shadow: none; }
}

@media (max-width: 768px) {
    nav { padding: 15px 5%; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #fff; flex-direction: column; justify-content: center; gap: 30px; transition: 0.4s;
    }
    .nav-links.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    .nav-links a:not(.btn-nav) { font-size: 1.2rem; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero h1 { font-size: 2.8rem; }
    .cta-group { flex-direction: column; }
    .btn { width: 100%; }
    
    .section { padding: 70px 0; }
    .section h2 { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .classic-form .input-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 30px 20px; }
    .info-card { padding: 30px 20px; }
    blockquote { font-size: 1.5rem; }
    
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
