/* ==========================================================
   style-site.css — Site public de prezentare (v4, premium)
   Paletă: grafit adânc + ivoriu cald + accent auriu-bronz
   (ecou al finisajelor metalice de fațadă). Tipografie: Fraunces
   (serif, editorial) pentru titluri + Inter pentru text/UI.
   Motiv vizual: grilaj de tâmplărie/mullion.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
    --grafit-950: #0d0f12;
    --grafit-800: #171b21;
    --grafit-700: #23282f;
    --ivoriu-100: #f6f3ee;
    --ivoriu-200: #e7ded0;
    --text-secundar: #6b6153;
    --cerneala: #16140f;
    --accent: #a8823c;
    --accent-dark: #8a6a2f;
    --accent-soft: rgba(168,130,60,0.12);
    --alb: #ffffff;
    --container: 1180px;
}

* { box-sizing: border-box; }

html { background: var(--grafit-950); }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--cerneala);
    background: var(--alb);
    line-height: 1.65;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

p { margin: 0 0 16px; max-width: 62ch; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.sectiune { padding: 104px 0; }
.sectiune-otel { background: var(--ivoriu-100); }
.sectiune-titlu { font-size: clamp(28px, 3.4vw, 42px); max-width: 20ch; }
.eyebrow-simplu {
    display: block;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ---------------- BUTOANE ---------------- */
.btn-site {
    display: inline-block;
    padding: 15px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border-radius: 6px;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-site-primar { background: var(--accent); color: #fff; }
.btn-site-primar:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(168,130,60,0.32); }
.btn-site-secundar { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-site-secundar:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-site-ghost { border-color: var(--grafit-950); color: var(--grafit-950); }
.btn-site-ghost:hover { background: var(--grafit-950); color: #fff; transform: translateY(-1px); }

/* ---------------- HEADER ---------------- */
.antet-site {
    background: var(--grafit-950);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(168,130,60,0.18);
}
.antet-site .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.antet-site .sigla {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 21px;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-site { display: flex; gap: 4px; align-items: center; }
.nav-site a {
    color: #c9c2b4;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.nav-site a:hover, .nav-site a.activ { color: #fff; background: rgba(255,255,255,0.06); }
.nav-site a.contact-nav { border: 1.5px solid rgba(168,130,60,0.5); margin-left: 8px; }
.nav-site a.contact-nav:hover { border-color: var(--accent); background: transparent; color: var(--accent); }

.buton-meniu-site {
    display: none;
    background: none; border: none; color: #fff; font-size: 26px; cursor: pointer;
}

/* ---------------- HERO ---------------- */
.hero-site {
    background: var(--grafit-950);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 130px 0 104px;
}
/* Grilaj decorativ - ecou vizual al mulionilor de tâmplărie/fațadă */
.hero-site::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 120px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 120px);
    pointer-events: none;
}
.hero-site::after {
    content: "";
    position: absolute; top: -30%; right: -8%;
    width: 55%; height: 160%;
    background: radial-gradient(circle, rgba(168,130,60,0.20), transparent 62%);
    pointer-events: none;
}
.hero-site .container { position: relative; }
.hero-site h1 { font-size: clamp(36px, 5.2vw, 60px); max-width: 16ch; }
.hero-site .hero-subtitlu { font-size: 18px; color: #c9c2b4; max-width: 54ch; line-height: 1.7; }
.hero-site .hero-actiuni { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-site.hero-mic { padding: 72px 0 64px; }
.hero-site.hero-mic h1 { font-size: clamp(30px, 4.2vw, 44px); }

/* ---------------- STATISTICI (rând simplu, fără carduri) ---------------- */
.rand-statistici {
    display: flex;
    gap: 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 34px;
    flex-wrap: wrap;
}
.rand-statistici .stat { flex: 1; min-width: 140px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.14); }
.rand-statistici .stat:last-child { border-right: none; }
.rand-statistici .stat .numar { font-family: 'Fraunces', serif; font-weight: 600; font-size: 38px; color: var(--accent); }
.rand-statistici .stat .eticheta { font-size: 13px; color: #c9c2b4; margin-top: 4px; }

/* ---------------- DESPRE NOI ---------------- */
.grid-despre {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: start;
}
.text-drop-cap::first-letter {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 68px;
    line-height: 0.75;
    float: left;
    margin: 4px 10px 0 0;
    color: var(--accent);
}

.lista-atu { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 18px; }
.lista-atu li { padding-left: 32px; position: relative; font-size: 15.5px; color: var(--text-secundar); }
.lista-atu li::before {
    content: "✓";
    position: absolute; left: 0; top: 1px;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ---------------- CATEGORII (carduri separate) ---------------- */
.grid-categorii {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.tila-categorie {
    background: #fff;
    border: 1px solid var(--ivoriu-200);
    border-radius: 14px;
    padding: 44px 40px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tila-categorie:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(22,20,15,0.09); border-color: var(--accent); }
.tila-categorie .icon-categorie {
    color: var(--accent);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex; align-items: center; justify-content: center;
}
.tila-categorie .icon-categorie svg { width: 32px; height: 32px; }
.tila-categorie h3 { font-size: 21px; margin-bottom: 4px; }
.tila-categorie p { font-size: 14.5px; color: var(--text-secundar); margin-bottom: 0; }
.tila-categorie .vezi-mai-mult { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto; }

/* ---------------- TAB-URI FILTRU (portofoliu) ---------------- */
.tabs-filtru { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 8px; }
.tab-filtru {
    padding: 9px 18px;
    border: 1px solid var(--ivoriu-200);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secundar);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tab-filtru:hover { border-color: var(--accent); color: var(--accent); }
.tab-filtru.activ { background: var(--grafit-950); border-color: var(--grafit-950); color: #fff; }

/* ---------------- GRID LUCRĂRI (portofoliu, tip revistă / masonry) ---------------- */
.grid-lucrari {
    column-count: 3;
    column-gap: 32px;
    margin-top: 44px;
}
.card-lucrare {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
}
.card-lucrare .poza-lucrare {
    background: var(--ivoriu-100);
    overflow: hidden;
    border: 1px solid var(--ivoriu-200);
    border-radius: 10px;
}
.card-lucrare .poza-lucrare img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.card-lucrare:hover .poza-lucrare img { transform: scale(1.06); }
.card-lucrare .poza-placeholder {
    height: 220px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secundar); font-size: 13px;
}
.card-lucrare h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; margin: 16px 0 4px; transition: color 0.15s ease; }
.card-lucrare:hover h3 { color: var(--accent); }
.card-lucrare .meta-lucrare { font-size: 13px; color: var(--text-secundar); }

.stare-goala {
    border: 1px dashed var(--ivoriu-200);
    border-radius: 10px;
    padding: 52px 32px;
    text-align: center;
    margin-top: 44px;
}
.stare-goala p { margin: 0 auto 20px; }

/* ---------------- PAGINĂ LUCRARE ---------------- */
.eticheta-categorie {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.meta-lucrare-detaliu { display: flex; gap: 24px; flex-wrap: wrap; color: var(--text-secundar); font-size: 14px; margin-bottom: 28px; }
.meta-lucrare-detaliu strong { color: var(--cerneala); }

/* ---------------- SLIDER LUCRARE (poze tip carusel) ---------------- */
.slider-lucrare {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ivoriu-200);
    border-radius: 12px;
    background: var(--ivoriu-100);
    aspect-ratio: 16/10;
    touch-action: pan-y;
}
.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}
.slider-slide { flex: 0 0 100%; height: 100%; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.slider-sageata {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(13,15,18,0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.slider-sageata:hover { background: var(--accent); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-dots {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
}
.slider-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.6);
    padding: 0; cursor: pointer; transition: width 0.2s, background 0.2s;
}
.slider-dots .dot.activ { background: var(--accent); width: 22px; border-radius: 4px; }

@media (max-width: 520px) {
    .slider-lucrare { aspect-ratio: 4/3; }
    .slider-sageata { width: 38px; height: 38px; font-size: 19px; }
}

/* ---------------- LINK „ÎNAPOI” (pagina de lucrare) ---------------- */
.link-inapoi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secundar);
    text-decoration: none;
    padding: 9px 16px 9px 12px;
    border: 1px solid var(--ivoriu-200);
    border-radius: 999px;
    margin-bottom: 28px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.link-inapoi svg { width: 15px; height: 15px; flex-shrink: 0; }
.link-inapoi:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(13,15,18,0.94);
    display: none; align-items: center; justify-content: center; z-index: 999; padding: 24px;
}
.lightbox-overlay.deschis { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 88vh; }
.lightbox-inchide {
    position: absolute; top: 24px; right: 28px; background: none; border: none;
    color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
}

/* ---------------- CONTACT ---------------- */
.grid-contact-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.lista-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.lista-contact li { font-size: 15px; }
.lista-contact .eticheta-contact { display: block; color: var(--text-secundar); font-size: 13px; margin-bottom: 2px; }
.lista-contact a { color: var(--cerneala); text-decoration: none; font-weight: 600; }
.lista-contact a:hover { color: var(--accent); }

/* ---------------- FORMULAR DE CONTACT ---------------- */
.form-contact { max-width: 560px; }
.rand-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grup-form { margin-bottom: 18px; }
.grup-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secundar); margin-bottom: 6px; }
.grup-form input, .grup-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ivoriu-200);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--cerneala);
    background: #fff;
}
.grup-form input:focus, .grup-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.grup-form textarea { resize: vertical; }

/* Câmp-capcană pentru roboți — invizibil pentru vizitatori reali */
.camp-capcana {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}

.mesaj-form { padding: 14px 18px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.mesaj-form-succes { background: #e6f4ea; color: #1a7431; border: 1px solid #b9e3c6; }
.mesaj-form-eroare { background: #fdeceb; color: #a3281a; border: 1px solid #f6c4bd; }

.nota-form { font-size: 13px; color: var(--text-secundar); margin-top: 14px; margin-bottom: 0; }
.nota-form a { color: var(--text-secundar); text-decoration: underline; }
.nota-form a:hover { color: var(--accent); }

@media (max-width: 560px) {
    .rand-form { grid-template-columns: 1fr; }
}

/* ---------------- FOOTER ---------------- */
.footer-site { background: var(--grafit-950); color: #c9c2b4; padding: 60px 0 28px; }
.footer-site .grid-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-site h4 { color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-site .sigla-footer { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: #fff; margin-bottom: 12px; }
.footer-site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-site a { color: #c9c2b4; text-decoration: none; font-size: 14px; }
.footer-site a:hover { color: var(--accent); }
.footer-site .footer-jos { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-site .footer-jos a { color: #8b8172; }

.btn-link-simplu {
    background: none; border: none; padding: 0;
    color: var(--text-secundar); font-weight: 600; font-size: 14px;
    text-decoration: underline; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn-link-simplu:hover { color: var(--accent); }

/* ---------------- BARĂ COOKIE-URI ---------------- */
.banner-cookie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    background: #fff;
    border-top: 1px solid var(--ivoriu-200);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.1);
    padding: 20px 24px;
}
.banner-cookie[hidden] { display: none; }
.banner-cookie-continut {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.banner-cookie-continut p { margin: 0; font-size: 13px; color: var(--text-secundar); max-width: 640px; }
.banner-cookie-actiuni { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.modal-cookie {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(13,15,18,0.55);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-cookie[hidden] { display: none; }
.modal-cookie-fereastra { background: #fff; border-radius: 10px; padding: 32px; max-width: 480px; width: 100%; }
.modal-cookie-fereastra h3 { margin-top: 0; }
.optiune-cookie { margin-bottom: 18px; }
.optiune-cookie label { font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.optiune-cookie p { font-size: 13px; color: var(--text-secundar); margin: 6px 0 0; }

/* ---------------- PAGINI LEGALE ---------------- */
.continut-legal h2 { font-size: 21px; margin-top: 44px; }
.continut-legal h2:first-of-type { margin-top: 8px; }
.continut-legal ul { color: var(--text-secundar); padding-left: 20px; }
.continut-legal li { margin-bottom: 8px; }
.footer-jos a { text-decoration: none; }
.footer-jos a:hover { color: #fff; text-decoration: underline; }

/* ---------------- APARIȚIE LA SCROLL ---------------- */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.reveal-init { opacity: 0; transform: translateY(28px); }
.reveal-intarziat-1.reveal-init { transition-delay: 0.1s; }
.reveal-intarziat-2.reveal-init { transition-delay: 0.2s; }
.reveal-intarziat-3.reveal-init { transition-delay: 0.3s; }

/* Cine preferă mișcare redusă vede conținutul direct, fără animație. */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.reveal-init { transition: none; opacity: 1; transform: none; }
}

/* ---------------- PROCES „CUM LUCRĂM” (pași numerotați) ---------------- */
.grid-proces {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.pas-proces { position: relative; padding-top: 8px; }
.pas-proces .numar-pas {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 40px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.pas-proces h3 { font-size: 18px; margin-bottom: 8px; }
.pas-proces p { font-size: 14px; color: var(--text-secundar); margin-bottom: 0; }
.pas-proces:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px; right: -16px;
    width: 12px; height: 12px;
    border-top: 2px solid var(--ivoriu-200);
    border-right: 2px solid var(--ivoriu-200);
    transform: rotate(45deg);
}

/* ---------------- BANDĂ CTA (finalul paginii) ---------------- */
.banda-cta {
    background: linear-gradient(135deg, var(--grafit-950), var(--grafit-800));
    color: #fff;
    padding: 76px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banda-cta::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 100px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 100px);
    pointer-events: none;
}
.banda-cta .container { position: relative; }
.banda-cta h2 { color: #fff; margin: 0 auto 12px; }
.banda-cta p { color: #c9c2b4; max-width: 48ch; margin: 0 auto 28px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
    .nav-site {
        position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
        background: var(--grafit-950); flex-direction: column; align-items: stretch;
        padding: 16px; display: none; overflow-y: auto;
    }
    .nav-site.deschis { display: flex; }
    .nav-site a { padding: 14px; font-size: 16px; }
    .buton-meniu-site { display: block; }

    .grid-despre, .grid-contact, .grid-contact-form { grid-template-columns: 1fr; gap: 32px; }
    .grid-categorii { grid-template-columns: 1fr; }
    .grid-proces { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    .pas-proces::after { display: none; }
    .banda-cta { padding: 56px 0; }
    .grid-lucrari { column-count: 2; column-gap: 24px; }
    .galerie-lucrare { grid-template-columns: repeat(2, 1fr); }
    .rand-statistici .stat { border-right: none; flex: 1 1 50%; margin-bottom: 16px; }
    .footer-site .grid-footer { grid-template-columns: 1fr; gap: 28px; }
    .sectiune { padding: 64px 0; }
}

@media (max-width: 520px) {
    .grid-lucrari { column-count: 1; }
    .galerie-lucrare { grid-template-columns: 1fr; }
    .grid-proces { grid-template-columns: 1fr; }
}
