/* ================================================================
   SHARED STYLES — traducerisuceava.ro
   Folosit de toate paginile dedicate
   ================================================================ */
:root {
    --primary-red: #B91C8E;
    --accent-yellow: #F59E0B;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --dark-gray: #374151;
    --text-gray: #6B7280;
    --primary-violet: #B91C8E;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: var(--dark-gray); }

/* NAVBAR */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-violet);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.8; }
.nav-links { display: flex; list-style: none; gap: 0.3rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--primary-red); }
.nav-links > li > a .nav-arrow { font-size: 0.65rem; transition: transform 0.3s ease; opacity: 0.6; }
.nav-links > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 100%; /* flush — bridge-ul acoperă golul */
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
    min-width: 260px;
    padding: 0.5rem 0;
    z-index: 2000;
    border-top: 3px solid var(--primary-violet);
    /* ascuns implicit cu visibility+opacity — NU display:none,
       ca să rămână în DOM și să prindă mouse events pe bridge */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Bridge invizibil: umple golul dintre link și meniu
   Mouse-ul nu mai "cade" în spațiul dintre ele */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;       /* acoperă golul de deasupra */
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* Deschis prin clasa .open adăugată de JS */
.nav-links > li.dropdown-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Săgeata se rotește când e deschis */
.nav-links > li.dropdown-open > a .nav-arrow { transform: rotate(180deg); }

@keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.2rem;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover { background: var(--light-gray); color: var(--primary-red); }
.dropdown-menu li a .drop-icon {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary-violet), #d946b0);
    color: #fff; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0;
}
.dropdown-menu .drop-divider { height: 1px; background: #f0f0f0; margin: 0.3rem 1rem; }
.dropdown-menu .drop-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-gray); padding: 0.5rem 1.2rem 0.2rem;
}

/* MOBILE MENU */
.mobile-menu { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-red); cursor: pointer; }

/* PAGE HERO (subpages) */
.page-hero {
    background: linear-gradient(135deg, rgba(185,28,142,0.88), rgba(245,158,11,0.6));
    padding: 130px 0 70px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.page-hero p { font-size: 1.2rem; max-width: 650px; margin: 0 auto; opacity: 0.95; }

/* BREADCRUMB */
.breadcrumb {
    background: var(--light-gray);
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}
.breadcrumb .container { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb a { color: var(--primary-red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; }

/* SECTIONS */
.section { padding: 70px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}
.section-title.center { text-align: center; margin-bottom: 3rem; }
.section-intro { font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; color: var(--dark-gray); }
.bg-light { background: var(--light-gray); }

/* DOC LIST */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.doc-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-violet);
    transition: transform 0.3s, box-shadow 0.3s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.doc-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.doc-card h3 i { color: var(--accent-yellow); }
.doc-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.6; }

/* HIGHLIGHT BOX */
.highlight-box {
    background: linear-gradient(135deg, rgba(185,28,142,0.07), rgba(245,158,11,0.07));
    border: 1px solid rgba(185,28,142,0.2);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
}
.highlight-box h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
}
.highlight-box p { font-size: 1rem; line-height: 1.8; color: var(--dark-gray); }

/* CTA STRIP */
.cta-strip {
    background: linear-gradient(135deg, var(--primary-violet), #9a1878);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.cta-strip h2 { font-family: 'Roboto', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-strip p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-button {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
    margin: 0 0.5rem;
}
.cta-button:hover { background: #E19F0B; transform: translateY(-2px); }
.cta-button.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: none;
}
.cta-button.outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* STEPS (online page) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}
.step-number {
    width: 52px; height: 52px;
    background: var(--primary-violet);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700;
    margin: 0 auto 1.2rem;
    font-family: 'Roboto', sans-serif;
}
.step-card h3 { font-family: 'Roboto', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--primary-red); margin-bottom: 0.75rem; }
.step-card p { font-size: 0.95rem; color: var(--text-gray); }

/* FOOTER */
.footer { background: var(--dark-gray); color: var(--white); padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-section h3 { font-family: 'Roboto', sans-serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--accent-yellow); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.4rem; }
.footer-section a { color: #D1D5DB; text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--accent-yellow); }
.footer-section p a { color: var(--accent-yellow); text-decoration: underline; font-weight: 500; }
.footer-section p a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #4B5563; color: #9CA3AF; }

/* FLOATING */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--accent-yellow); color: var(--white);
    border: none; border-radius: 5px; font-size: 1.2rem;
    cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
}
.back-to-top:hover { background: #E19F0B; transform: translateY(-3px); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.whatsapp-float {
    position: fixed; bottom: 90px; right: 30px;
    width: 60px; height: 60px; background: #25D366; color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 5px 15px rgba(37,211,102,0.3); transition: all 0.3s; z-index: 999;
}
.whatsapp-float:hover { background: #1ebe57; transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: fixed; top: 70px; left: 0; width: 100%;
        background: var(--white); flex-direction: column; padding: 1rem 2rem 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); gap: 0; max-height: calc(100vh - 70px); overflow-y: auto;
    }
    .nav-links.active { display: flex; }
    .nav-links > li > a { padding: 0.8rem 0; border-bottom: 1px solid #f0f0f0; border-radius: 0; }
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-violet);
        margin-left: 1rem;
        padding: 0;
        min-width: auto;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.2s, max-height 0.3s ease;
        pointer-events: none;
    }
    .dropdown-menu::before { display: none; }
    .nav-links > li.mobile-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        pointer-events: auto;
    }
    .mobile-menu { display: block; }
    .page-hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .doc-grid, .steps { grid-template-columns: 1fr; }
    .whatsapp-float { bottom: 80px; }
}
